summary refs log tree commit diff
path: root/pkgs/development/python-modules/habanero/default.nix
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2022-03-28 11:59:43 +0200
committerGitHub <noreply@github.com>2022-03-28 11:59:43 +0200
commit7963f78ba7c52a85e0db3f3a7748f5f68da4eb49 (patch)
treebe815fab03e0381381b037dd817e5529bf8991d7 /pkgs/development/python-modules/habanero/default.nix
parentbb18719b6d305b8395b6d4def57b1a8d452794e7 (diff)
downloadnixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.tar
nixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.tar.gz
nixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.tar.bz2
nixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.tar.lz
nixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.tar.xz
nixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.tar.zst
nixpkgs-7963f78ba7c52a85e0db3f3a7748f5f68da4eb49.zip
python3Packages.habanero: add pythonImportsCheck
Diffstat (limited to 'pkgs/development/python-modules/habanero/default.nix')
-rw-r--r--pkgs/development/python-modules/habanero/default.nix42
1 files changed, 28 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/habanero/default.nix b/pkgs/development/python-modules/habanero/default.nix
index 3a2d085e5bc..0352ec41139 100644
--- a/pkgs/development/python-modules/habanero/default.nix
+++ b/pkgs/development/python-modules/habanero/default.nix
@@ -1,26 +1,31 @@
-{ buildPythonPackage, lib, fetchFromGitHub
-, requests, tqdm
-, nose, vcrpy
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+, requests
+, tqdm
+, nose
+, vcrpy
 , pytestCheckHook
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "habanero";
   version = "1.2.0";
+  format = "setuptools";
+
+  disabled = pythonOlder "3.7";
 
-  # Install from Pypi is failing because of a missing file (Changelog.rst)
   src = fetchFromGitHub {
     owner = "sckott";
     repo = pname;
     rev = "v${version}";
-    sha256 = "sha256-jxaO8nCR5jhXCPjhjVLKaGeQp9JF3ECQ1+j3TOJKawg=";
+    hash = "sha256-jxaO8nCR5jhXCPjhjVLKaGeQp9JF3ECQ1+j3TOJKawg=";
   };
 
-  propagatedBuildInputs = [ requests tqdm ];
-
-  # almost the entirety of the test suite makes network calls
-  pytestFlagsArray = [
-    "test/test-filters.py"
+  propagatedBuildInputs = [
+    requests
+    tqdm
   ];
 
   checkInputs = [
@@ -28,10 +33,19 @@ buildPythonPackage rec {
     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";
-    homepage = "https://habanero.readthedocs.io/en/latest/";
-    license = lib.licenses.mit;
-    maintainers = [ lib.maintainers.nico202 ];
+    homepage = "https://habanero.readthedocs.io/";
+    license = licenses.mit;
+    maintainers = with maintainers; [ nico202 ];
   };
 }