2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
breezy,
|
|
|
|
build,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
git,
|
|
|
|
pep517,
|
|
|
|
pytestCheckHook,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
tomli,
|
|
|
|
pythonOlder,
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "check-manifest";
|
2023-02-22 10:55:15 +00:00
|
|
|
version = "0.49";
|
2022-03-30 09:31:56 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-02-22 10:55:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-22 10:55:15 +00:00
|
|
|
hash = "sha256-ZKZARFVCzyJpGWV8e3jQLZwcpbHCXX5m4OH/MlBg9BY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
build
|
|
|
|
pep517
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools
|
2024-06-05 15:53:02 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-19 17:17:44 +00:00
|
|
|
git
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ breezy ];
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test wants to setup a venv
|
|
|
|
"test_build_sdist_pep517_isolated"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "check_manifest" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Check MANIFEST.in in a Python source package for completeness";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "check-manifest";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/mgedmin/check-manifest";
|
2023-02-22 10:55:15 +00:00
|
|
|
changelog = "https://github.com/mgedmin/check-manifest/blob/${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lewo ];
|
|
|
|
};
|
|
|
|
}
|