depot/third_party/nixpkgs/pkgs/development/python-modules/demjson/default.nix
Default email 4cb23072fc Project import generated by Copybara.
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
2022-01-20 00:45:15 +01:00

34 lines
677 B
Nix

{ lib
, python
, buildPythonPackage
, fetchPypi
, isPy3k
}:
buildPythonPackage rec {
pname = "demjson";
version = "2.2.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "0ygbddpnvp5lby6mr5kz60la3hkvwwzv3wwb3z0w9ngxl0w21pii";
};
doCheck = !(isPy3k);
checkPhase = ''
${python.interpreter} test/test_demjson.py
'';
pythonImportsCheck = [
"demjson"
];
meta = with lib; {
description = "Encoder/decoder and lint/validator for JSON (JavaScript Object Notation)";
homepage = "https://github.com/dmeranda/demjson";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ bjornfor ];
};
}