2017-07-15 11:48:27 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
, pytest, mock }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "jsonref";
|
2018-11-18 21:12:20 +01:00
|
|
|
version = "0.2";
|
2017-07-15 11:48:27 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-11-18 21:12:20 +01:00
|
|
|
sha256 = "15v69rg2lkcykb2spnq6vbbirv9sfq480fnwmfppw9gn3h95pi7k";
|
2017-07-15 11:48:27 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test tests.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An implementation of JSON Reference for Python";
|
2018-03-25 07:04:25 +02:00
|
|
|
homepage = "https://github.com/gazpachoking/jsonref";
|
2017-07-15 11:48:27 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ nand0p ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|