depot/third_party/nixpkgs/pkgs/development/python-modules/simplejson/default.nix
Default email 88abffb7d2 Project import generated by Copybara.
GitOrigin-RevId: bc9b956714ed6eac5f8888322aac5bc41389defa
2021-09-18 12:52:07 +02:00

39 lines
943 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, stdenv
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "simplejson";
version = "3.17.5";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "1vljsd5bk12gasadkxcddwhmp38fj64x1aqi4frk3frq9lp8h3a1";
};
checkInputs = [
pytestCheckHook
];
doCheck = !stdenv.isDarwin;
pythonImportsCheck = [ "simplejson" ];
meta = with lib; {
description = "Extensible JSON encoder/decoder for Python";
longDescription = ''
simplejson covers the full JSON specification for both encoding
and decoding, with unicode support. By default, encoding is done
in an encoding neutral fashion (plain ASCII with \uXXXX escapes
for unicode characters).
'';
homepage = "https://github.com/simplejson/simplejson";
license = with licenses; [ mit afl21 ];
maintainers = with maintainers; [ fab ];
};
}