mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
54 lines
1022 B
Nix
54 lines
1022 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, packaging
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, tomli
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyproject-metadata";
|
|
version = "0.6.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi rec {
|
|
inherit pname version;
|
|
hash = "sha256-tfsJVDpkqRFl3+hXlnWfnkFe3Clr602zPR7PeGaoYr0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
wheel
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
packaging
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
|
tomli
|
|
];
|
|
|
|
# Many broken tests, and missing test files
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"pyproject_metadata"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "PEP 621 metadata parsing";
|
|
homepage = "https://github.com/FFY00/python-pyproject-metadata";
|
|
changelog = "https://github.com/FFY00/python-pyproject-metadata/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fridh ];
|
|
};
|
|
}
|