2023-09-04 01:45:08 +03:00
|
|
|
{
|
|
|
|
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;
|
2023-09-04 01:45:08 +03:00
|
|
|
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;
|
2023-09-05 01:40:05 +03:00
|
|
|
inherit (pkgs) gitMinimal nix-prefetch-scripts;
|
2023-09-04 01:45:08 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|