2021-03-19 17:17:44 +00:00
|
|
|
{ lib
|
|
|
|
, breezy
|
|
|
|
, build
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-11-21 17:40:18 +00:00
|
|
|
, fetchpatch
|
2021-03-19 17:17:44 +00:00
|
|
|
, git
|
|
|
|
, mock
|
|
|
|
, pep517
|
|
|
|
, pytestCheckHook
|
|
|
|
, toml
|
2022-03-30 09:31:56 +00:00
|
|
|
, pythonOlder
|
2021-03-19 17:17:44 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "check-manifest";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.48";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-30 09:31:56 +00:00
|
|
|
hash = "sha256-O1dfHa3nvrMHjvS/M6lFGYNEV8coHbxyaxXFRmtVxlc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
patches = [
|
|
|
|
# Fix git submodule tests using file: protocol
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/mgedmin/check-manifest/pull/159.patch";
|
|
|
|
hash = "sha256-CDtuIoHgP4THLt+xF32C/OrjakwPOEVTKUh5JuQB5wM=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
build
|
|
|
|
pep517
|
|
|
|
toml
|
|
|
|
];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
checkInputs = [
|
|
|
|
breezy
|
|
|
|
git
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
disabledTests = [
|
|
|
|
# Test wants to setup a venv
|
|
|
|
"test_build_sdist_pep517_isolated"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"check_manifest"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Check MANIFEST.in in a Python source package for completeness";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/mgedmin/check-manifest";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lewo ];
|
|
|
|
};
|
|
|
|
}
|