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