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