From c027ec5488161d1334fec799767d942d59c82fd0 Mon Sep 17 00:00:00 2001 From: Marcus Boyd Date: Wed, 7 Aug 2019 16:43:33 +0930 Subject: [PATCH] pythonPackages.tinydb: init at v3.14.1 --- .../python-modules/tinydb/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/tinydb/default.nix diff --git a/pkgs/development/python-modules/tinydb/default.nix b/pkgs/development/python-modules/tinydb/default.nix new file mode 100644 index 000000000000..f4de29b5e6c9 --- /dev/null +++ b/pkgs/development/python-modules/tinydb/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, pytest +, pytestcov +, pytestrunner +, pycodestyle +, pyyaml +}: + +buildPythonPackage rec { + pname = "tinydb"; + version = "v3.14.1"; + + src = fetchFromGitHub { + owner = "msiemens"; + repo = pname; + rev = version; + sha256 = "02idbvrm8j4mwsjfkzy11f4png19k307p53s4qa2ifzssysxpb96"; + }; + + nativeBuildInputs = [ + pytestrunner + ]; + + checkInputs = [ + pytest + pytestcov + pycodestyle + pyyaml + ]; + + meta = with lib; { + description = "A lightweight document oriented database written in pure Python with no external dependencies"; + homepage = "https://github.com/msiemens/tinydb"; + license = licenses.asl20; + maintainers = with maintainers; [ marcus7070 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1b7bd53802b9..805ec75f1c3d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5270,6 +5270,8 @@ in { tiros = callPackage ../development/python-modules/tiros { }; + tinydb = callPackage ../development/python-modules/tinydb { }; + tifffile = callPackage ../development/python-modules/tifffile { }; tmdb3 = callPackage ../development/python-modules/tmdb3 { };