nixpkgs/pkgs/development/python-modules/pep517/default.nix

53 lines
866 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";
2021-01-02 19:39:05 +00:00
version = "0.9.1";
2020-06-11 10:36:17 +01:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
2021-01-02 19:39:05 +00:00
sha256 = "0zqidxah03qpnp6zkg3zd1kmd5f79hhdsfmlc0cldaniy80qddxf";
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
}