nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 812 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pytestCheckHook, 6 setuptools, 7 simplejson, 8}: 9 10buildPythonPackage rec { 11 pname = "canonicaljson"; 12 version = "2.0.0"; 13 pyproject = true; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-4v2u8df63F2ctZvT0NQbBk3dppeAmsQyXc7XIdEvET8="; 18 }; 19 20 nativeBuildInputs = [ setuptools ]; 21 22 propagatedBuildInputs = [ simplejson ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 pythonImportsCheck = [ "canonicaljson" ]; 27 28 meta = { 29 description = "Encodes objects and arrays as RFC 7159 JSON"; 30 homepage = "https://github.com/matrix-org/python-canonicaljson"; 31 changelog = "https://github.com/matrix-org/python-canonicaljson/blob/v${version}/CHANGES.md"; 32 license = lib.licenses.asl20; 33 maintainers = with lib.maintainers; [ fab ]; 34 }; 35}