Files
nixpkgs/pkgs/development/python-modules/check-manifest/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

61 lines
1.2 KiB
Nix

{
lib,
breezy,
build,
buildPythonPackage,
fetchFromGitHub,
git,
pep517,
pytestCheckHook,
setuptools,
tomli,
pythonOlder,
}:
buildPythonPackage rec {
pname = "check-manifest";
version = "0.51";
pyproject = true;
disabled = pythonOlder "3.7";
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";
};
}