3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pep517/default.nix

53 lines
879 B
Nix
Raw Normal View History

2020-06-11 10:36:17 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, toml
, pythonOlder
, importlib-metadata
, zipp
, pytestCheckHook
, testpath
, mock
, pip
}:
buildPythonPackage rec {
pname = "pep517";
version = "0.12.0";
2020-06-11 10:36:17 +01:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "931378d93d11b298cf511dd634cf5ea4cb249a28ef84160b3247ee9afb4e8ab0";
2020-06-11 10:36:17 +01:00
};
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";
};
2020-08-25 03:07:09 +01:00
}