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

74 lines
1.4 KiB
Nix
Raw Normal View History

2020-06-11 10:36:29 +01:00
{ lib
, buildPythonPackage
, fetchPypi
2021-03-03 10:00:51 +00:00
, filelock
2020-06-11 10:36:29 +01:00
, flit-core
2021-03-03 10:00:51 +00:00
, importlib-metadata
2020-06-11 10:36:29 +01:00
, isPy3k
2021-03-03 10:00:51 +00:00
, packaging
, pep517
, pytest-mock
, pytest-xdist
, pytestCheckHook
2020-06-11 10:36:29 +01:00
, pythonOlder
2021-03-03 10:00:51 +00:00
, toml
, typing
2020-06-11 10:36:29 +01:00
}:
buildPythonPackage rec {
pname = "build";
2021-03-03 10:00:51 +00:00
version = "0.3.0";
2020-06-11 10:36:29 +01:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
2021-03-03 10:00:51 +00:00
sha256 = "sha256-DrlbLI13DXxMm5LGjCJ8NQu/ZfPsg1UazpCXwYzBX90=";
2020-06-11 10:36:29 +01:00
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
toml
pep517
packaging
] ++ lib.optionals (!isPy3k) [
typing
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
2021-03-03 10:00:51 +00:00
checkInputs = [
filelock
pytestCheckHook
pytest-mock
pytest-xdist
];
disabledTests = [
"test_isolation"
"test_isolated_environment_install"
"test_default_pip_is_never_too_old"
"test_build_isolated - StopIteration"
"test_build_raises_build_exception"
"test_build_raises_build_backend_exception"
"test_projectbuilder.py"
"test_projectbuilder.py"
];
pythonImportsCheck = [ "build" ];
2020-06-11 10:36:29 +01:00
2020-12-25 20:01:33 +00:00
meta = with lib; {
description = "Simple, correct PEP517 package builder";
longDescription = ''
build will invoke the PEP 517 hooks to build a distribution package. It
is a simple build tool and does not perform any dependency management.
'';
homepage = "https://github.com/pypa/build";
maintainers = with maintainers; [ fab ];
license = licenses.mit;
2020-06-11 10:36:29 +01:00
};
2020-08-25 03:07:09 +01:00
}