initial commit
This commit is contained in:
commit
e3b0136650
9 changed files with 245 additions and 0 deletions
36
package/python.nix
Normal file
36
package/python.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
callPackage,
|
||||
python3Packages,
|
||||
|
||||
name,
|
||||
repo ? name,
|
||||
version,
|
||||
hash,
|
||||
pydeps ? (_: []),
|
||||
|
||||
...
|
||||
}: let
|
||||
source = callPackage ./source.nix {
|
||||
inherit repo;
|
||||
inherit version;
|
||||
inherit hash;
|
||||
};
|
||||
in python3Packages.buildPythonPackage {
|
||||
pname = name;
|
||||
inherit version;
|
||||
|
||||
src = callPackage ./source.nix {
|
||||
inherit repo;
|
||||
inherit version;
|
||||
inherit hash;
|
||||
};
|
||||
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
pyproject = true;
|
||||
|
||||
dependencies = let
|
||||
common = with python3Packages; [
|
||||
cython
|
||||
];
|
||||
in common ++ pydeps python3Packages;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue