summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyparser
diff options
context:
space:
mode:
authorNicolò Balzarotti <anothersms@gmail.com>2018-02-09 16:42:06 +0100
committerNicolò Balzarotti <anothersms@gmail.com>2018-02-10 09:23:01 +0100
commit1e5216751e666b30c6892f52310d4db38de818bf (patch)
tree3f406ec23012f05f74bfcd18716bf1e771e2b52c /pkgs/development/python-modules/pyparser
parente6a42f82526432e0c515af5ad4982631ac7bdaae (diff)
downloadnixlib-1e5216751e666b30c6892f52310d4db38de818bf.tar
nixlib-1e5216751e666b30c6892f52310d4db38de818bf.tar.gz
nixlib-1e5216751e666b30c6892f52310d4db38de818bf.tar.bz2
nixlib-1e5216751e666b30c6892f52310d4db38de818bf.tar.lz
nixlib-1e5216751e666b30c6892f52310d4db38de818bf.tar.xz
nixlib-1e5216751e666b30c6892f52310d4db38de818bf.tar.zst
nixlib-1e5216751e666b30c6892f52310d4db38de818bf.zip
pyparser: init at 1.0
Diffstat (limited to 'pkgs/development/python-modules/pyparser')
-rw-r--r--pkgs/development/python-modules/pyparser/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyparser/default.nix b/pkgs/development/python-modules/pyparser/default.nix
new file mode 100644
index 000000000000..1c00d726eadc
--- /dev/null
+++ b/pkgs/development/python-modules/pyparser/default.nix
@@ -0,0 +1,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 ];
+  };
+}