1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 flit-core,
6 unittestCheckHook,
7
8 # for passthru.tests
9 awsebcli,
10 black,
11 hatchling,
12 yamllint,
13}:
14
15buildPythonPackage rec {
16 pname = "pathspec";
17 version = "0.12.1";
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-pILVFQOhqzOxxnpsOBOiaVPb3HHDHayu+ag4xOKfVxI=";
23 };
24
25 nativeBuildInputs = [ flit-core ];
26
27 pythonImportsCheck = [ "pathspec" ];
28
29 checkInputs = [ unittestCheckHook ];
30
31 passthru.tests = {
32 inherit
33 awsebcli
34 black
35 hatchling
36 yamllint
37 ;
38 };
39
40 meta = {
41 description = "Utility library for gitignore-style pattern matching of file paths";
42 homepage = "https://github.com/cpburnz/python-path-specification";
43 changelog = "https://github.com/cpburnz/python-pathspec/blob/v${version}/CHANGES.rst";
44 license = lib.licenses.mpl20;
45 maintainers = [ ];
46 };
47}