summary refs log tree commit diff
path: root/pkgs/development/python-modules/jsonref
diff options
context:
space:
mode:
authorwisut hantanong <wizzup@gmail.com>2017-07-15 16:48:27 +0700
committerJörg Thalheim <joerg@thalheim.io>2017-07-15 17:40:55 +0100
commit552975879167ae5428e9828dfba38ed70440795e (patch)
treecb6f8ed245e0785836cbab486692fec6b781b8aa /pkgs/development/python-modules/jsonref
parentf0ac8236968eb5a38a5f0cd21b014a8fe8715e56 (diff)
downloadnixlib-552975879167ae5428e9828dfba38ed70440795e.tar
nixlib-552975879167ae5428e9828dfba38ed70440795e.tar.gz
nixlib-552975879167ae5428e9828dfba38ed70440795e.tar.bz2
nixlib-552975879167ae5428e9828dfba38ed70440795e.tar.lz
nixlib-552975879167ae5428e9828dfba38ed70440795e.tar.xz
nixlib-552975879167ae5428e9828dfba38ed70440795e.tar.zst
nixlib-552975879167ae5428e9828dfba38ed70440795e.zip
python.pkgs.jsonref: move to separate expression
Diffstat (limited to 'pkgs/development/python-modules/jsonref')
-rw-r--r--pkgs/development/python-modules/jsonref/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/jsonref/default.nix b/pkgs/development/python-modules/jsonref/default.nix
new file mode 100644
index 000000000000..ca9549b677bb
--- /dev/null
+++ b/pkgs/development/python-modules/jsonref/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, buildPythonPackage, fetchPypi
+, pytest, mock }:
+
+buildPythonPackage rec {
+  pname = "jsonref";
+  version = "0.1";
+  name = "${pname}-${version}";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1lqa8dy1sr1bxi00ri79lmbxvzxi84ki8p46zynyrgcqhwicxq2n";
+  };
+
+  buildInputs = [ pytest mock ];
+
+  checkPhase = ''
+    py.test tests.py
+  '';
+
+  meta = with stdenv.lib; {
+    description = "An implementation of JSON Reference for Python";
+    homepage    = "http://github.com/gazpachoking/jsonref";
+    license     = licenses.mit;
+    maintainers = with maintainers; [ nand0p ];
+    platforms   = platforms.all;
+  };
+}