2021-03-03 11:01:42 +01:00
|
|
|
{ lib
|
|
|
|
, breezy
|
|
|
|
, build
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, git
|
|
|
|
, mock
|
|
|
|
, pep517
|
|
|
|
, pytestCheckHook
|
|
|
|
, toml
|
|
|
|
}:
|
2018-03-31 17:32:41 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "check-manifest";
|
2021-09-22 21:06:14 +02:00
|
|
|
version = "0.47";
|
2018-03-31 17:32:41 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-09-22 21:06:14 +02:00
|
|
|
sha256 = "56dadd260a9c7d550b159796d2894b6d0bcc176a94cbc426d9bb93e5e48d12ce";
|
2018-03-31 17:32:41 +02:00
|
|
|
};
|
|
|
|
|
2020-07-07 16:05:20 +02:00
|
|
|
# Test requires filesystem access
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace tests.py --replace "test_build_sdist" "no_test_build_sdist"
|
|
|
|
'';
|
2019-11-02 19:15:49 +01:00
|
|
|
|
2021-03-03 11:01:42 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
build
|
|
|
|
pep517
|
|
|
|
toml
|
|
|
|
];
|
2020-07-07 16:05:20 +02:00
|
|
|
|
2021-03-03 11:01:42 +01:00
|
|
|
checkInputs = [
|
|
|
|
breezy
|
|
|
|
git
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2021-03-03 08:08:23 +01:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "check_manifest" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/mgedmin/check-manifest";
|
2018-03-31 17:32:41 +02:00
|
|
|
description = "Check MANIFEST.in in a Python source package for completeness";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lewo ];
|
|
|
|
};
|
|
|
|
}
|