diff --git a/pkgs/development/python-modules/confection/default.nix b/pkgs/development/python-modules/confection/default.nix new file mode 100644 index 000000000000..82cedc869687 --- /dev/null +++ b/pkgs/development/python-modules/confection/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pydantic +, pytestCheckHook +, pythonOlder +, srsly +}: + +buildPythonPackage rec { + pname = "confection"; + version = "0.0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "explosion"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-3qxB94CYCMZN+sKqbmDfkRyAs6HJkFLE/5yJx1DKqYM="; + }; + + propagatedBuildInputs = [ + pydantic + srsly + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "confection" + ]; + + meta = with lib; { + description = "Library that offers a configuration system"; + homepage = "https://github.com/explosion/confection"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 33b8a206ff52..32138162945c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1898,6 +1898,8 @@ self: super: with self; { conda = callPackage ../development/python-modules/conda { }; + confection = callPackage ../development/python-modules/confection { }; + configargparse = callPackage ../development/python-modules/configargparse { }; configclass = callPackage ../development/python-modules/configclass { };