Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pyproject-metadata / default.nix
blob0111ad3e52d44d9a572982281061a534bcaba639
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , packaging
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools
8 , tomli
9 , wheel
12 buildPythonPackage rec {
13   pname = "pyproject-metadata";
14   version = "0.7.1";
15   format = "pyproject";
17   disabled = pythonOlder "3.7";
19   src = fetchPypi rec {
20     inherit pname version;
21     hash = "sha256-CpTxixCLmyHzomo9VB8FbDTtyxfchyoUShVhj+1672c=";
22   };
24   nativeBuildInputs = [
25     setuptools
26     wheel
27   ];
29   propagatedBuildInputs = [
30     packaging
31   ];
33   nativeCheckInputs = [
34     pytestCheckHook
35   ] ++ lib.optionals (pythonOlder "3.11") [
36     tomli
37   ];
39   # Many broken tests, and missing test files
40   doCheck = false;
42   pythonImportsCheck = [
43     "pyproject_metadata"
44   ];
46   meta = with lib; {
47     description = "PEP 621 metadata parsing";
48     homepage = "https://github.com/FFY00/python-pyproject-metadata";
49     changelog = "https://github.com/FFY00/python-pyproject-metadata/blob/${version}/CHANGELOG.rst";
50     license = licenses.mit;
51     maintainers = with maintainers; [ fridh ];
52   };