From c56ac665925bc13b471aca8216813d077e2fc172 Mon Sep 17 00:00:00 2001 From: Sauyon Lee <2347889+sauyon@users.noreply.github.com> Date: Mon, 25 Oct 2021 23:51:13 +0000 Subject: [PATCH] python3Packages.simple_di: init at 0.1.2 --- .../python-modules/simple_di/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/simple_di/default.nix diff --git a/pkgs/development/python-modules/simple_di/default.nix b/pkgs/development/python-modules/simple_di/default.nix new file mode 100644 index 000000000000..7421ccdb6367 --- /dev/null +++ b/pkgs/development/python-modules/simple_di/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, pythonOlder +, fetchPypi +, setuptools +, typing-extensions +, dataclasses +}: + +buildPythonPackage rec { + version = "0.1.2"; + pname = "simple_di"; + disabled = pythonOlder "3.6.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0wqbfbajnwmkzih0jl3mncalr7dslvmwhb5mk11asqvmbp1xhn30"; + }; + + propagatedBuildInputs = [ + setuptools + typing-extensions + ] ++ lib.optional (pythonOlder "3.7") [ + dataclasses + ]; + + meta = { + description = "Simple dependency injection library"; + homepage = "https://github.com/bentoml/simple_di"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ sauyon ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 276facab0bae..6911601eead1 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8450,6 +8450,8 @@ in { simplekml = callPackage ../development/python-modules/simplekml { }; + simple_di = callPackage ../development/python-modules/simple_di { }; + simple-rest-client = callPackage ../development/python-modules/simple-rest-client { }; simple-salesforce = callPackage ../development/python-modules/simple-salesforce { };