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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
976 B
Nix
Raw Normal View History

2020-06-11 10:36:17 +01:00
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, tomli
2020-06-11 10:36:17 +01:00
, pythonOlder
, importlib-metadata
, zipp
, pytestCheckHook
, setuptools
2020-06-11 10:36:17 +01:00
, 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 = [
tomli
2020-06-11 10:36:17 +01:00
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata zipp
];
checkInputs = [
pytestCheckHook
setuptools
2020-06-11 10:36:17 +01:00
testpath
mock
pip
];
disabledTests = [
"test_setup_py"
"test_issue_104"
];
2020-06-11 10:36:17 +01:00
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
}