nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 797 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, frozendict 5, pytestCheckHook 6, pythonOlder 7, simplejson 8}: 9 10buildPythonPackage rec { 11 pname = "canonicaljson"; 12 version = "1.6.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-qTZk9phVbb1Lq5w/xPs1g0zyU12h6gC2t3WNj+K7uCQ="; 20 }; 21 22 propagatedBuildInputs = [ 23 frozendict 24 simplejson 25 ]; 26 27 checkInputs = [ 28 pytestCheckHook 29 ]; 30 31 disabledTests = [ 32 "test_frozen_dict" 33 ]; 34 35 pythonImportsCheck = [ 36 "canonicaljson" 37 ]; 38 39 meta = with lib; { 40 description = "Encodes objects and arrays as RFC 7159 JSON"; 41 homepage = "https://github.com/matrix-org/python-canonicaljson"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ fab ]; 44 }; 45}