1{
2 buildPythonPackage,
3 lib,
4 fetchhg,
5 parse,
6}:
7
8buildPythonPackage rec {
9 pname = "pyparser";
10 version = "1.0";
11 format = "setuptools";
12
13 # Missing tests on Pypi
14 src = fetchhg {
15 url = "https://keep.imfreedom.org/grim/pyparser";
16 rev = "v${version}";
17 sha256 = "0aplb4zdpgbpmaw9qj0vr7qip9q5w7sl1m1lp1nc9jmjfij9i0hf";
18 };
19
20 postPatch = "sed -i 's/parse==/parse>=/' requirements.txt";
21
22 propagatedBuildInputs = [ parse ];
23
24 meta = {
25 description = "Simple library that makes it easier to parse files";
26 homepage = "https://keep.imfreedom.org/grim/pyparser";
27 license = lib.licenses.gpl3;
28 maintainers = [ lib.maintainers.nico202 ];
29 };
30}