diff options
author | wisut hantanong <wizzup@gmail.com> | 2017-07-15 16:48:27 +0700 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2017-07-15 17:40:55 +0100 |
commit | 552975879167ae5428e9828dfba38ed70440795e (patch) | |
tree | cb6f8ed245e0785836cbab486692fec6b781b8aa /pkgs/development/python-modules/jsonref | |
parent | f0ac8236968eb5a38a5f0cd21b014a8fe8715e56 (diff) | |
download | nixlib-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.nix | 27 |
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; + }; +} |