2022-09-30 11:47:45 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2024-05-15 15:35:15 +00:00
|
|
|
, flit-core
|
2022-09-30 11:47:45 +00:00
|
|
|
, packaging
|
|
|
|
, pytestCheckHook
|
2022-12-17 10:02:37 +00:00
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2022-09-30 11:47:45 +00:00
|
|
|
, tomli
|
2022-12-17 10:02:37 +00:00
|
|
|
, wheel
|
2022-09-30 11:47:45 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyproject-metadata";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.8.0";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
pname = "pyproject_metadata";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-N21aAHZKwpRApUV5+I5mt9nLfmKdNcNaHHJIv+vJtFU=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [
|
|
|
|
flit-core
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2022-09-30 11:47:45 +00:00
|
|
|
packaging
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
pytestCheckHook
|
2022-12-17 10:02:37 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [
|
2022-09-30 11:47:45 +00:00
|
|
|
tomli
|
|
|
|
];
|
|
|
|
|
|
|
|
# Many broken tests, and missing test files
|
|
|
|
doCheck = false;
|
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyproject_metadata"
|
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "PEP 621 metadata parsing";
|
|
|
|
homepage = "https://github.com/FFY00/python-pyproject-metadata";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/FFY00/python-pyproject-metadata/blob/${version}/CHANGELOG.rst";
|
2022-09-30 11:47:45 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|