about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/jsonref/default.nix
blob: 3154f63f3181c837584083f0b71b5308c6edce58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ 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;
  };
}