2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
flit-core,
|
|
|
|
unittestCheckHook,
|
|
|
|
|
|
|
|
# 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
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "pathspec" ];
|
2023-03-15 16:39:30 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
checkInputs = [ unittestCheckHook ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
passthru.tests = {
|
2024-06-05 15:53:02 +00:00
|
|
|
inherit
|
|
|
|
awsebcli
|
|
|
|
black
|
|
|
|
hatchling
|
|
|
|
yamllint
|
|
|
|
;
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
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
|
|
|
}
|