mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
53 lines
878 B
Nix
53 lines
878 B
Nix
{ 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";
|
|
};
|
|
}
|