depot/third_party/nixpkgs/pkgs/development/python-modules/pyproject-metadata/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

53 lines
1,016 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
];
checkInputs = [
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 ];
};
}