Merge pull request #68815 from jonringer/fix-minidb

pythonPackages.minidb: disable python2 tests
This commit is contained in:
Mario Rodas 2019-09-15 11:19:14 -05:00 committed by GitHub
commit fe9085e2e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ];
};
}