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