python311Packages.gitignore-parser: init at 0.1.2

This commit is contained in:
Fabian Affolter 2023-05-20 23:52:53 +02:00
parent b7a9deb5bd
commit aa4b05f18f
2 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,37 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "gitignore-parser";
version = "0.1.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mherrmann";
repo = "gitignore_parser";
rev = "refs/tags/v${version}";
hash = "sha256-F1ZQQ33naOO7KNuSdlo0JN8i50lLty+eGSJAzVJL730=";
};
nativeCheckInputs = [
unittestCheckHook
];
pythonImportsCheck = [
"gitignore_parser"
];
meta = with lib; {
description = "A spec-compliant gitignore parser";
homepage = "https://github.com/mherrmann/gitignore_parser";
changelog = "https://github.com/mherrmann/gitignore_parser/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -4053,6 +4053,8 @@ self: super: with self; {
github3_py = callPackage ../development/python-modules/github3_py { };
gitignore-parser = callPackage ../development/python-modules/gitignore-parser { };
gitpython = callPackage ../development/python-modules/gitpython { };
glad = callPackage ../development/python-modules/glad { };