dream2nix/pkgs/fetchPipMetadata/flake-module.nix

35 lines
652 B
Nix
Raw Normal View History

{
perSystem = {
self',
pkgs,
lib,
...
}: let
python3 = pkgs.python310;
in {
devShells.fetch-pip-metadata = let
2023-09-05 00:39:41 +03:00
package = self'.packages.fetch-pip-metadata-package;
pythonWithDeps = python3.withPackages (
ps:
package.propagatedBuildInputs
++ [
ps.black
ps.pytest
ps.pytest-cov
]
);
in
pkgs.mkShell {
packages = [
pythonWithDeps
];
};
packages.fetch-pip-metadata-package = import ./package.nix {
inherit lib;
inherit python3;
inherit (pkgs) gitMinimal;
};
};
}