1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
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.11.2";
18 format = "pyproject";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-4NjQrC8S2mGVbrIwa2n5RptC9N6w88tu1HuczpmWztM=";
23 };
24
25 nativeBuildInputs = [
26 flit-core
27 ];
28
29 pythonImportsCheck = [
30 "pathspec"
31 ];
32
33 checkInputs = [
34 unittestCheckHook
35 ];
36
37 passthru.tests = {
38 inherit awsebcli black hatchling yamllint;
39 };
40
41 meta = {
42 description = "Utility library for gitignore-style pattern matching of file paths";
43 homepage = "https://github.com/cpburnz/python-path-specification";
44 changelog = "https://github.com/cpburnz/python-pathspec/blob/v${version}/CHANGES.rst";
45 license = lib.licenses.mpl20;
46 maintainers = with lib.maintainers; [ copumpkin ];
47 };
48}