Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, frozendict 5, pytestCheckHook 6, pythonOlder 7, setuptools 8, simplejson 9}: 10 11buildPythonPackage rec { 12 pname = "canonicaljson"; 13 version = "2.0.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-4v2u8df63F2ctZvT0NQbBk3dppeAmsQyXc7XIdEvET8="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 ]; 26 27 propagatedBuildInputs = [ 28 simplejson 29 ]; 30 31 nativeCheckInputs = [ 32 pytestCheckHook 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 changelog = "https://github.com/matrix-org/python-canonicaljson/blob/v${version}/CHANGES.md"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}