python.pkgs.pep517: init at 0.8.2
This commit is contained in:
parent
0d72b5da2a
commit
41010cf832
52
pkgs/development/python-modules/pep517/default.nix
Normal file
52
pkgs/development/python-modules/pep517/default.nix
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, flit-core
|
||||||
|
, toml
|
||||||
|
, pythonOlder
|
||||||
|
, importlib-metadata
|
||||||
|
, zipp
|
||||||
|
, pytestCheckHook
|
||||||
|
, testpath
|
||||||
|
, mock
|
||||||
|
, pip
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pep517";
|
||||||
|
version = "0.8.2";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "8e6199cf1288d48a0c44057f112acf18aa5ebabbf73faa242f598fbe145ba29e";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
flit-core
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
toml
|
||||||
|
] ++ lib.optionals (pythonOlder "3.8") [
|
||||||
|
importlib-metadata zipp
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
testpath
|
||||||
|
mock
|
||||||
|
pip
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
rm pytest.ini # wants flake8
|
||||||
|
rm tests/test_meta.py # wants to run pip
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
description = "Wrappers to build Python packages using PEP 517 hooks";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
homepage = "https://github.com/pypa/pep517";
|
||||||
|
};
|
||||||
|
}
|
@ -5018,6 +5018,8 @@ in {
|
|||||||
|
|
||||||
pep257 = callPackage ../development/python-modules/pep257 { };
|
pep257 = callPackage ../development/python-modules/pep257 { };
|
||||||
|
|
||||||
|
pep517 = callPackage ../development/python-modules/pep517 { };
|
||||||
|
|
||||||
percol = callPackage ../development/python-modules/percol { };
|
percol = callPackage ../development/python-modules/percol { };
|
||||||
|
|
||||||
pexif = callPackage ../development/python-modules/pexif { };
|
pexif = callPackage ../development/python-modules/pexif { };
|
||||||
|
Loading…
Reference in New Issue
Block a user