1{ stdenv, buildPythonPackage, fetchPypi
2, pytest, mock }:
3
4buildPythonPackage rec {
5 pname = "jsonref";
6 version = "0.1";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "1lqa8dy1sr1bxi00ri79lmbxvzxi84ki8p46zynyrgcqhwicxq2n";
11 };
12
13 buildInputs = [ pytest mock ];
14
15 checkPhase = ''
16 py.test tests.py
17 '';
18
19 meta = with stdenv.lib; {
20 description = "An implementation of JSON Reference for Python";
21 homepage = "https://github.com/gazpachoking/jsonref";
22 license = licenses.mit;
23 maintainers = with maintainers; [ nand0p ];
24 platforms = platforms.all;
25 };
26}