summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyparser/default.nix
blob: 57ce2f2f9d9bb302d3bf0c7400ad3e7089066968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  buildPythonPackage,
  lib,
  fetchhg,
  parse,
}:

buildPythonPackage rec {
  pname = "pyparser";
  version = "1.0";
  format = "setuptools";

  # Missing tests on Pypi
  src = fetchhg {
    url = "https://keep.imfreedom.org/grim/pyparser";
    rev = "v${version}";
    sha256 = "0aplb4zdpgbpmaw9qj0vr7qip9q5w7sl1m1lp1nc9jmjfij9i0hf";
  };

  postPatch = "sed -i 's/parse==/parse>=/' requirements.txt";

  propagatedBuildInputs = [ parse ];

  meta = {
    description = "Simple library that makes it easier to parse files";
    homepage = "https://keep.imfreedom.org/grim/pyparser";
    license = lib.licenses.gpl3;
    maintainers = [ lib.maintainers.nico202 ];
  };
}