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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.13.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Gy+i/9OTi7S+/+XWFGy8sr2plqWk2p8xq//Ysk4Hsxc=";
|
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
|
|
|
}
|