depot/third_party/nixpkgs/pkgs/development/python-modules/jsonref/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

26 lines
594 B
Nix

{ lib, buildPythonPackage, fetchPypi
, pytest, mock }:
buildPythonPackage rec {
pname = "jsonref";
version = "0.2";
src = fetchPypi {
inherit pname version;
sha256 = "15v69rg2lkcykb2spnq6vbbirv9sfq480fnwmfppw9gn3h95pi7k";
};
checkInputs = [ pytest mock ];
checkPhase = ''
py.test tests.py
'';
meta = with lib; {
description = "An implementation of JSON Reference for Python";
homepage = "https://github.com/gazpachoking/jsonref";
license = licenses.mit;
maintainers = with maintainers; [ nand0p ];
platforms = platforms.all;
};
}