1{ lib, fetchFromGitHub
2, buildPythonPackage
3, setuptools
4, pytestCheckHook
5}:
6buildPythonPackage rec {
7 pname = "parse";
8 version = "1.19.1";
9 format = "pyproject";
10
11 src = fetchFromGitHub {
12 owner = "r1chardj0n3s";
13 repo = "parse";
14 rev = "refs/tags/${version}";
15 hash = "sha256-f08SlkGnwhSh0ajTKFqBAGGFvLj8nWBZVb6uClbRaP4=";
16 };
17
18 nativeBuildInputs = [
19 setuptools
20 ];
21
22 nativeCheckInputs = [
23 pytestCheckHook
24 ];
25
26 meta = with lib; {
27 homepage = "https://github.com/r1chardj0n3s/parse";
28 description = "parse() is the opposite of format()";
29 license = licenses.bsdOriginal;
30 maintainers = with maintainers; [ alunduil ];
31 };
32}