summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyjson5/default.nix
blob: 232bafd3ba7e3689090025f1b974d92fcc99869e (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
{ buildPythonPackage, lib, nose, fetchFromGitHub }:

buildPythonPackage rec {
  pname = "pyjson5";
  version = "0.8.5";

  src = fetchFromGitHub {
    owner = "dpranke";
    repo = pname;
    rev = "v${version}";
    sha256 = "0nyngj18jlkgvm1177lc3cj47wm4yh3dqigygvcvw7xkyryafsqn";
  };

  doCheck = true;
  checkInputs = [ nose ];
  checkPhase = ''
    nosetests
  '';

  meta = with lib; {
    description = "Python implementation of the JSON5 data format";
    license = licenses.asl20;
    homepage = "https://github.com/dpranke/pyjson5";
    maintainers = with maintainers; [ isgy ];
  };
}