python3Packages.tinydb: 3.14.1 -> 4.1.1

* Fix license
* Update version
* Update homepage & URL links
* Disable on python2.7 (no longer supported).
This commit is contained in:
Drew Risinger 2020-09-16 11:16:01 -04:00
parent 5f4b880b40
commit 289825ae8a

View File

@ -1,7 +1,9 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, pythonOlder
, fetchFromGitHub , fetchFromGitHub
, pytest , poetry
, pytestCheckHook
, pytestcov , pytestcov
, pytestrunner , pytestrunner
, pycodestyle , pycodestyle
@ -10,21 +12,21 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "tinydb"; pname = "tinydb";
version = "v3.14.1"; version = "4.1.1";
disabled = pythonOlder "3.5";
format = "pyproject";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "msiemens"; owner = "msiemens";
repo = pname; repo = pname;
rev = version; rev = "v${version}";
sha256 = "02idbvrm8j4mwsjfkzy11f4png19k307p53s4qa2ifzssysxpb96"; sha256 = "09cwdmpj91c6q7jympip1lrcd3idbm9cqblgvmrh0v1vy1iv2ki7";
}; };
nativeBuildInputs = [ nativeBuildInputs = [ poetry ];
pytestrunner
];
checkInputs = [ checkInputs = [
pytest pytestCheckHook
pytestcov pytestcov
pycodestyle pycodestyle
pyyaml pyyaml
@ -32,8 +34,9 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "A lightweight document oriented database written in pure Python with no external dependencies"; description = "A lightweight document oriented database written in pure Python with no external dependencies";
homepage = "https://github.com/msiemens/tinydb"; homepage = "https://tinydb.readthedocs.org/";
license = licenses.asl20; changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
license = licenses.mit;
maintainers = with maintainers; [ marcus7070 ]; maintainers = with maintainers; [ marcus7070 ];
}; };
} }