diff --git a/pkgs/development/python-modules/condense-json/default.nix b/pkgs/development/python-modules/condense-json/default.nix new file mode 100644 index 000000000000..422aa5dacf2d --- /dev/null +++ b/pkgs/development/python-modules/condense-json/default.nix @@ -0,0 +1,37 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + pytestCheckHook, +}: +buildPythonPackage rec { + pname = "condense-json"; + version = "0.1.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "simonw"; + repo = "condense-json"; + tag = version; + hash = "sha256-eZ8d8N7k8VL7dFkORHmp7JmHM1/11Km8BCriWw/LiwE="; + }; + + build-system = [ + setuptools + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "condense_json" ]; + + meta = { + description = "Python function for condensing JSON using replacement strings"; + homepage = "https://github.com/simonw/condense-json"; + changelog = "https://github.com/simonw/condense-json/releases/tag/${src.tag}"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ josh ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 83003a8ff767..41407ad1c17f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2739,6 +2739,8 @@ self: super: with self; { conda-package-streaming = callPackage ../development/python-modules/conda-package-streaming { }; + condense-json = callPackage ../development/python-modules/condense-json { }; + conduit = callPackage ../development/python-modules/conduit { }; conduit-mpi = callPackage ../development/python-modules/conduit { mpiSupport = true; };