1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
breezy,
|
|
build,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
git,
|
|
pep517,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
tomli,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "check-manifest";
|
|
version = "0.51";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mgedmin";
|
|
repo = "check-manifest";
|
|
tag = version;
|
|
hash = "sha256-tT6xQZwqJIsyrO9BjWweIeNgYaopziewerVBk0mFVYg=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
build
|
|
pep517
|
|
setuptools
|
|
]
|
|
++ lib.optionals (pythonOlder "3.11") [ tomli ];
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
pytestCheckHook
|
|
];
|
|
|
|
checkInputs = [ breezy ];
|
|
|
|
disabledTests = [
|
|
# Test wants to setup a venv
|
|
"test_build_sdist_pep517_isolated"
|
|
];
|
|
|
|
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/${version}/CHANGES.rst";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ lewo ];
|
|
mainProgram = "check-manifest";
|
|
};
|
|
}
|