From 20e891ea4275e58328ab3a454a27eb39160ba656 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 19 Dec 2021 14:43:42 +0100 Subject: [PATCH] python3Packages.sqlalchemy-mixins: init at 1.5.1 --- .../sqlalchemy-mixins/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/sqlalchemy-mixins/default.nix diff --git a/pkgs/development/python-modules/sqlalchemy-mixins/default.nix b/pkgs/development/python-modules/sqlalchemy-mixins/default.nix new file mode 100644 index 000000000000..85a03482a323 --- /dev/null +++ b/pkgs/development/python-modules/sqlalchemy-mixins/default.nix @@ -0,0 +1,45 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, nose +, pytestCheckHook +, pythonOlder +, six +, sqlalchemy +}: + +buildPythonPackage rec { + pname = "sqlalchemy-mixins"; + version = "1.5.1"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "absent1706"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-HZiv7F0/UatgY3KlILgzywrK5NJE/tDe6B8/smeYwlM="; + }; + + propagatedBuildInputs = [ + six + sqlalchemy + ]; + + checkInputs = [ + nose + pytestCheckHook + ]; + + pythonImportsCheck = [ + "sqlalchemy_mixins" + ]; + + meta = with lib; { + description = "Python mixins for SQLAlchemy ORM"; + homepage = "https://github.com/absent1706/sqlalchemy-mixins"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 41656c24a549..3945d0e6b4c5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9111,6 +9111,8 @@ in { sqlalchemy-migrate = callPackage ../development/python-modules/sqlalchemy-migrate { }; + sqlalchemy-mixins = callPackage ../development/python-modules/sqlalchemy-mixins { }; + sqlalchemy-utils = callPackage ../development/python-modules/sqlalchemy-utils { }; sqlitedict = callPackage ../development/python-modules/sqlitedict { };