2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2022-09-30 11:47:45 +00:00
|
|
|
, pythonOlder
|
2023-03-15 16:39:30 +00:00
|
|
|
, flit-core
|
|
|
|
, unittestCheckHook
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
# for passthru.tests
|
|
|
|
, awsebcli
|
|
|
|
, black
|
|
|
|
, hatchling
|
|
|
|
, yamllint
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-09-30 11:47:45 +00:00
|
|
|
pname = "pathspec";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.12.1";
|
2022-09-30 11:47:45 +00:00
|
|
|
format = "pyproject";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-pILVFQOhqzOxxnpsOBOiaVPb3HHDHayu+ag4xOKfVxI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
2023-03-15 16:39:30 +00:00
|
|
|
flit-core
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pathspec"
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
unittestCheckHook
|
2022-09-30 11:47:45 +00:00
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit awsebcli black hatchling yamllint;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "Utility library for gitignore-style pattern matching of file paths";
|
|
|
|
homepage = "https://github.com/cpburnz/python-path-specification";
|
2023-03-15 16:39:30 +00:00
|
|
|
changelog = "https://github.com/cpburnz/python-pathspec/blob/v${version}/CHANGES.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = lib.licenses.mpl20;
|
|
|
|
maintainers = with lib.maintainers; [ copumpkin ];
|
|
|
|
};
|
2020-09-25 04:45:31 +00:00
|
|
|
}
|