Files
nixpkgs/pkgs/development/python-modules/check-manifest/default.nix

69 lines
1.4 KiB
Nix

{
lib,
breezy,
build,
buildPythonPackage,
fetchFromGitHub,
git,
pep517,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "check-manifest";
version = "0.51";
pyproject = true;
src = fetchFromGitHub {
owner = "mgedmin";
repo = "check-manifest";
tag = finalAttrs.version;
hash = "sha256-tT6xQZwqJIsyrO9BjWweIeNgYaopziewerVBk0mFVYg=";
};
patches = [
# upstream fix for setuptools >= 83, unreleased as of 0.51
./setuptools-83-ignorelist.patch
];
build-system = [ setuptools ];
dependencies = [
build
pep517
setuptools
];
nativeCheckInputs = [
git
pytestCheckHook
];
checkInputs = [ breezy ];
disabledTests = [
# Test wants to setup a venv
"test_build_sdist_pep517_isolated"
# Tests wants to read/write in a restricted area
"test_get_ignore_from_manifest"
"test_read_"
# Tests wants to write in argv
"test_extra_ignore_args"
"test_ignore_bad_ideas_args"
];
pythonImportsCheck = [ "check_manifest" ];
meta = {
description = "Check MANIFEST.in in a Python source package for completeness";
homepage = "https://github.com/mgedmin/check-manifest";
changelog = "https://github.com/mgedmin/check-manifest/blob/${finalAttrs.version}/CHANGES.rst";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lewo ];
mainProgram = "check-manifest";
};
})