nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 799 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6 unittestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "gitignore-parser"; 11 version = "0.1.13"; 12 pyproject = true; 13 14 src = fetchFromGitHub { 15 owner = "mherrmann"; 16 repo = "gitignore_parser"; 17 tag = "v${version}"; 18 hash = "sha256-jd5C8whfdLuEC+ebDAAYso33o2H963P+8RWcm26koVM="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 nativeCheckInputs = [ unittestCheckHook ]; 24 25 pythonImportsCheck = [ "gitignore_parser" ]; 26 27 meta = { 28 description = "Spec-compliant gitignore parser"; 29 homepage = "https://github.com/mherrmann/gitignore_parser"; 30 changelog = "https://github.com/mherrmann/gitignore_parser/releases/tag/${src.tag}"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ fab ]; 33 }; 34}