3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/build/default.nix

47 lines
726 B
Nix
Raw Normal View History

2020-06-11 10:36:29 +01: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 10:36:29 +01:00
format = "pyproject";
src = fetchPypi {
inherit pname version;
2021-01-12 10:24:21 +00:00
sha256 = "sha256-CLK1gJj/YX0RVAVsefinC+7Rj3z6cQvKI6ByGWkQ1bQ=";
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
];
# No tests in archive
doCheck = false;
meta = {
description = "A simple, correct PEP517 package builder";
license = lib.licenses.mit;
};
2020-08-25 03:07:09 +01:00
}