summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyparser/default.nix
blob: 1c00d726eadc6cdb4a3422750c211fd0fe88aebb (plain) (blame)
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
{ buildPythonPackage, lib, fetchFromBitbucket
, parse
}:

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

  # Missing tests on Pypi
  src = fetchFromBitbucket {
    owner = "rw_grim";
    repo = pname;
    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://bitbucket.org/rw_grim/pyparser;
    license = lib.licenses.gpl3;
    maintainers = [ lib.maintainers.nico202 ];
  };
}