depot/third_party/nixpkgs/pkgs/development/python-modules/check-manifest/default.nix
Default email 84cb9d505d Project import generated by Copybara.
GitOrigin-RevId: 51bcdc4cdaac48535dabf0ad4642a66774c609ed
2021-09-23 17:35:13 +02:00

48 lines
884 B
Nix

{ lib
, breezy
, build
, buildPythonPackage
, fetchPypi
, git
, mock
, pep517
, pytestCheckHook
, toml
}:
buildPythonPackage rec {
pname = "check-manifest";
version = "0.47";
src = fetchPypi {
inherit pname version;
sha256 = "56dadd260a9c7d550b159796d2894b6d0bcc176a94cbc426d9bb93e5e48d12ce";
};
# Test requires filesystem access
postPatch = ''
substituteInPlace tests.py --replace "test_build_sdist" "no_test_build_sdist"
'';
propagatedBuildInputs = [
build
pep517
toml
];
checkInputs = [
breezy
git
mock
pytestCheckHook
];
pythonImportsCheck = [ "check_manifest" ];
meta = with lib; {
homepage = "https://github.com/mgedmin/check-manifest";
description = "Check MANIFEST.in in a Python source package for completeness";
license = licenses.mit;
maintainers = with maintainers; [ lewo ];
};
}