5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
53 lines
986 B
Nix
53 lines
986 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, flit-core
|
|
, packaging
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, setuptools
|
|
, tomli
|
|
, wheel
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyproject-metadata";
|
|
version = "0.8.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "pyproject_metadata";
|
|
inherit version;
|
|
hash = "sha256-N21aAHZKwpRApUV5+I5mt9nLfmKdNcNaHHJIv+vJtFU=";
|
|
};
|
|
|
|
build-system = [
|
|
flit-core
|
|
];
|
|
|
|
dependencies = [
|
|
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;
|
|
};
|
|
}
|