pythonPackages.minidb: disable python2 tests

This commit is contained in:
Jonathan Ringer 2019-09-14 12:09:56 -07:00
parent a715aa7073
commit b0fc4b6e49

View file

@ -1,29 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchurl
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k
, nose
, pytest
}:
buildPythonPackage rec {
pname = "minidb";
version = "2.0.2";
src = fetchurl {
url = "https://github.com/thp/minidb/archive/${version}.tar.gz";
sha256 = "17rvkpq8v7infvbgsi48vnxamhxb3f635nqn0sln7yyvh4i9k8a0";
src = fetchFromGitHub {
owner = "thp";
repo = "minidb";
rev = version;
sha256 = "14y5vf8vhgviczhzy9h3xv99fjvrg975nz4w1fj5c1jv37da1lq3";
};
checkInputs = [ nose ];
# module imports are incompatible with python2
doCheck = isPy3k;
checkInputs = [ nose pytest ];
checkPhase = ''
nosetests test
pytest
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "A simple SQLite3-based store for Python objects";
homepage = https://thp.io/2010/minidb/;
license = stdenv.lib.licenses.isc;
maintainers = [ stdenv.lib.maintainers.tv ];
homepage = "https://thp.io/2010/minidb/";
license = licenses.isc;
maintainers = [ maintainers.tv ];
};
}