2020-06-15 15:56:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, flit-core
|
2022-02-10 20:34:41 +00:00
|
|
|
, tomli
|
2020-06-15 15:56:04 +00:00
|
|
|
, pythonOlder
|
|
|
|
, importlib-metadata
|
|
|
|
, zipp
|
|
|
|
, pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
, setuptools
|
2020-06-15 15:56:04 +00:00
|
|
|
, testpath
|
|
|
|
, mock
|
|
|
|
, pip
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pep517";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.13.0";
|
2020-06-15 15:56:04 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-rmmSfFwXK+Gt2SA3JtS4TPPrrR7c1fcfzcdG5m6Cn1k=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-02-10 20:34:41 +00:00
|
|
|
tomli
|
2020-06-15 15:56:04 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata zipp
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2020-06-15 15:56:04 +00:00
|
|
|
pytestCheckHook
|
2022-02-10 20:34:41 +00:00
|
|
|
setuptools
|
2020-06-15 15:56:04 +00:00
|
|
|
testpath
|
|
|
|
mock
|
|
|
|
pip
|
|
|
|
];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_setup_py"
|
|
|
|
"test_issue_104"
|
|
|
|
];
|
|
|
|
|
2020-06-15 15:56:04 +00: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-09-25 04:45:31 +00:00
|
|
|
}
|