Commit aa4b05f1 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.gitignore-parser: init at 0.1.2

parent b7a9deb5
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };