From 49eeda13c607900e9e7f802ed36d15643b6f31b5 Mon Sep 17 00:00:00 2001 From: grindhold Date: Wed, 27 Apr 2022 15:34:39 +0200 Subject: [PATCH] pythonPackages.durus: init at 4.2 --- maintainers/maintainer-list.nix | 6 ++++ .../python-modules/durus/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/development/python-modules/durus/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 0aa94408de949..893aa04a6255e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -4716,6 +4716,12 @@ githubId = 201997; name = "Eric Seidel"; }; + grindhold = { + name = "grindhold"; + email = "grindhold+nix@skarphed.org"; + github = "grindhold"; + githubId = 2592640; + }; gspia = { email = "iahogsp@gmail.com"; github = "gspia"; diff --git a/pkgs/development/python-modules/durus/default.nix b/pkgs/development/python-modules/durus/default.nix new file mode 100644 index 0000000000000..456ae010d63c1 --- /dev/null +++ b/pkgs/development/python-modules/durus/default.nix @@ -0,0 +1,28 @@ +{ stdenv, lib, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "Durus"; + version = "4.2"; + + src = fetchPypi { + inherit version pname; + sha256 = "sha256:1gzxg43zawwgqjrfixvcrilwpikb1ix9b7710rsl5ffk7q50yi3c"; + }; + + # Checks disabled due to missing python unittest framework 'sancho' in nixpkgs + doCheck = false; + + pythonImportsCheck = [ + "durus.connection" + "durus.file_storage" + "durus.client_storage" + "durus.sqlite_storage" + ]; + + meta = with lib; { + description = "Object persistence layer"; + homepage = "https://github.com/nascheme/durus"; + license = licenses.mit; + maintainers = with maintainers; [ grindhold ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 268791fb23030..5bc03dd7b2a0b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2532,6 +2532,8 @@ in { dungeon-eos = callPackage ../development/python-modules/dungeon-eos { }; + durus = callPackage ../development/python-modules/durus { }; + dwdwfsapi = callPackage ../development/python-modules/dwdwfsapi { }; dyn = callPackage ../development/python-modules/dyn { };