devshell: enable typing for buildbot

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-10-12 12:25:42 +02:00
parent 60860d3084
commit f61128981a
3 changed files with 10 additions and 1 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

View file

@ -1,7 +1,10 @@
{ setuptools, buildPythonPackage }: { setuptools, buildPythonPackage, pkgs, toPythonModule }:
buildPythonPackage { buildPythonPackage {
name = "buildbot-nix"; name = "buildbot-nix";
format = "pyproject"; format = "pyproject";
src = ./.; src = ./.;
nativeBuildInputs = [ setuptools ]; nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
(toPythonModule pkgs.buildbot)
];
} }

View file

@ -42,6 +42,11 @@
pkgs.ruff pkgs.ruff
]; ];
}; };
devShells.default = pkgs.mkShell {
packages = [
self'.packages.buildbot-nix
];
};
packages.buildbot-nix = pkgs.python3.pkgs.callPackage ./default.nix { }; packages.buildbot-nix = pkgs.python3.pkgs.callPackage ./default.nix { };
checks = checks =
let let