python3Packages.habanero: add pythonImportsCheck

This commit is contained in:
Fabian Affolter 2022-03-28 11:59:43 +02:00 committed by GitHub
parent bb18719b6d
commit 7963f78ba7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,26 +1,31 @@
{ buildPythonPackage, lib, fetchFromGitHub { lib
, requests, tqdm , buildPythonPackage
, nose, vcrpy , fetchFromGitHub
, requests
, tqdm
, nose
, vcrpy
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "habanero"; pname = "habanero";
version = "1.2.0"; version = "1.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
# Install from Pypi is failing because of a missing file (Changelog.rst)
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "sckott"; owner = "sckott";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-jxaO8nCR5jhXCPjhjVLKaGeQp9JF3ECQ1+j3TOJKawg="; hash = "sha256-jxaO8nCR5jhXCPjhjVLKaGeQp9JF3ECQ1+j3TOJKawg=";
}; };
propagatedBuildInputs = [ requests tqdm ]; propagatedBuildInputs = [
requests
# almost the entirety of the test suite makes network calls tqdm
pytestFlagsArray = [
"test/test-filters.py"
]; ];
checkInputs = [ checkInputs = [
@ -28,10 +33,19 @@ buildPythonPackage rec {
vcrpy vcrpy
]; ];
meta = { pythonImportsCheck = [
"habanero"
];
# almost the entirety of the test suite makes network calls
pytestFlagsArray = [
"test/test-filters.py"
];
meta = with lib; {
description = "Python interface to Library Genesis"; description = "Python interface to Library Genesis";
homepage = "https://habanero.readthedocs.io/en/latest/"; homepage = "https://habanero.readthedocs.io/";
license = lib.licenses.mit; license = licenses.mit;
maintainers = [ lib.maintainers.nico202 ]; maintainers = with maintainers; [ nico202 ];
}; };
} }