From b5c7704111aa9a6364f0c5395051ff568b208918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 11 Sep 2021 12:14:06 +0200 Subject: [PATCH] python39Packages.oslo-i18n: init at 5.1.0 --- .../python-modules/oslo-i18n/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/oslo-i18n/default.nix diff --git a/pkgs/development/python-modules/oslo-i18n/default.nix b/pkgs/development/python-modules/oslo-i18n/default.nix new file mode 100644 index 000000000000..cdb6767c7a52 --- /dev/null +++ b/pkgs/development/python-modules/oslo-i18n/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchPypi +, oslotest +, pbr +, testscenarios +, stestr +}: + +buildPythonPackage rec { + pname = "oslo-i18n"; + version = "5.1.0"; + + src = fetchPypi { + pname = "oslo.i18n"; + inherit version; + sha256 = "6bf111a6357d5449640852de4640eae4159b5562bbba4c90febb0034abc095d0"; + }; + + postPatch = '' + # only a small portion of the listed packages are actually needed for running the tests + # so instead of removing them one by one remove everything + rm test-requirements.txt + ''; + + nativeBuildInputs = [ pbr ]; + + checkInputs = [ + oslotest + stestr + testscenarios + ]; + + checkPhase = '' + stestr run + ''; + + pythonImportsCheck = [ "oslo_i18n" ]; + + meta = with lib; { + description = "Oslo i18n library"; + homepage = "https://github.com/openstack/oslo.i18n"; + license = licenses.asl20; + maintainers = teams.openstack.members; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 065d86d048ee..e8e598f8c643 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5162,6 +5162,8 @@ in { oslo-db = callPackage ../development/python-modules/oslo-db { }; + oslo-i18n = callPackage ../development/python-modules/oslo-i18n { }; + osqp = callPackage ../development/python-modules/osqp { }; outcome = callPackage ../development/python-modules/outcome { };