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

53 lines
1012 B
Nix
Raw Normal View History

2020-06-11 09:36:29 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, flit-core
, toml
, pep517
, packaging
, isPy3k
, typing
, pythonOlder
, importlib-metadata
}:
buildPythonPackage rec {
pname = "build";
2021-01-12 10:24:21 +00:00
version = "0.1.0";
2020-06-11 09:36:29 +00:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "1d6m21lijwm04g50nwgsgj7x3vhblzw7jv05ah8psqgzk20bbch8";
2020-06-11 09:36:29 +00:00
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
toml
pep517
packaging
] ++ lib.optionals (!isPy3k) [
typing
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
# No tests in archive
doCheck = false;
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 09:36:29 +00:00
};
2020-08-25 02:07:09 +00:00
}