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