depot/third_party/nixpkgs/pkgs/development/python-modules/simplejson/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

39 lines
942 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, stdenv
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "simplejson";
version = "3.17.3";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "sha256-Ev1vKyxexPvTT+esf9ngUcHu70Brl27P3qbS5fK2HxU=";
};
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 ];
};
}