Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / minidb / default.nix
blobdbe9597ea0cc419e02d43a29189fd2f327e48721
1 { lib, buildPythonPackage, fetchFromGitHub, isPy3k
2 , nose
3 , pytest
4 }:
6 buildPythonPackage rec {
7   pname = "minidb";
8   version = "2.0.4";
9   disabled = !isPy3k;
11   src = fetchFromGitHub {
12     owner = "thp";
13     repo = "minidb";
14     rev = version;
15     sha256 = "0i607rkfx0rkyllcx4vf3w2z0wxzs1gqigfw87q90pjrbbh2q4sb";
16   };
18   # module imports are incompatible with python2
19   doCheck = isPy3k;
20   checkInputs = [ nose pytest ];
21   checkPhase = ''
22     pytest
23   '';
25   meta = with lib; {
26     description = "A simple SQLite3-based store for Python objects";
27     homepage = "https://thp.io/2010/minidb/";
28     license = licenses.isc;
29     maintainers = [ maintainers.tv ];
30   };