ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / tinydb / default.nix
blobae08cceab1ee50cda418c8a926070614d5cbde3c
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , poetry-core
6 , pytestCheckHook
7 , pycodestyle
8 , pyyaml
9 }:
11 buildPythonPackage rec {
12   pname = "tinydb";
13   version = "4.7.0";
14   disabled = pythonOlder "3.5";
15   format = "pyproject";
17   src = fetchFromGitHub {
18     owner = "msiemens";
19     repo = pname;
20     rev = "v${version}";
21     sha256 = "sha256-cAIo/qdIOIpPt9vPan5oJfKtH2Gmrm03aLuAHpfUfLY=";
22   };
24   nativeBuildInputs = [
25     poetry-core
26   ];
28   postPatch = ''
29     substituteInPlace pytest.ini \
30       --replace "--cov-append --cov-report term --cov tinydb" ""
31   '';
33   checkInputs = [
34     pytestCheckHook
35     pycodestyle
36     pyyaml
37   ];
39   pythonImportsCheck = [ "tinydb" ];
41   meta = with lib; {
42     description = "Lightweight document oriented database written in Python";
43     homepage = "https://tinydb.readthedocs.org/";
44     changelog = "https://tinydb.readthedocs.io/en/latest/changelog.html";
45     license = licenses.mit;
46     maintainers = with maintainers; [ marcus7070 ];
47   };