2020-06-15 15:56:04 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-07-17 21:14:59 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-19 17:17:44 +00:00
|
|
|
, filelock
|
2020-06-15 15:56:04 +00:00
|
|
|
, flit-core
|
2021-03-19 17:17:44 +00:00
|
|
|
, importlib-metadata
|
2020-06-15 15:56:04 +00:00
|
|
|
, isPy3k
|
2021-03-19 17:17:44 +00:00
|
|
|
, packaging
|
|
|
|
, pep517
|
|
|
|
, pytest-mock
|
2021-07-17 21:14:59 +00:00
|
|
|
, pytest-rerunfailures
|
2021-03-19 17:17:44 +00:00
|
|
|
, pytest-xdist
|
|
|
|
, pytestCheckHook
|
2020-06-15 15:56:04 +00:00
|
|
|
, pythonOlder
|
2021-03-19 17:17:44 +00:00
|
|
|
, toml
|
2021-04-26 19:14:03 +00:00
|
|
|
, typing ? null
|
2020-06-15 15:56:04 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "build";
|
2021-07-17 21:14:59 +00:00
|
|
|
version = "0.5.1";
|
2020-06-15 15:56:04 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pypa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "15hc9mbxsngfc9n805x8rk7yqbxnw12mpk6hfwcsldnfii1vg2ph";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
toml
|
|
|
|
pep517
|
|
|
|
packaging
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
typing
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
importlib-metadata
|
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
checkInputs = [
|
|
|
|
filelock
|
|
|
|
pytest-mock
|
2021-07-17 21:14:59 +00:00
|
|
|
pytest-rerunfailures
|
2021-03-19 17:17:44 +00:00
|
|
|
pytest-xdist
|
2021-07-17 21:14:59 +00:00
|
|
|
pytestCheckHook
|
2021-03-19 17:17:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_isolation"
|
|
|
|
"test_isolated_environment_install"
|
|
|
|
"test_default_pip_is_never_too_old"
|
2021-07-17 21:14:59 +00:00
|
|
|
"test_build"
|
|
|
|
"test_init"
|
2021-03-19 17:17:44 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "build" ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2021-02-05 17:12:51 +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-15 15:56:04 +00:00
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|