Commit cff718c9 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.puremagic: enable tests

parent 66e6bb3f
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:

@@ -11,13 +12,16 @@ buildPythonPackage rec {

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-bkaqeBE6Rmq8n2nm6KTOkOtX2Qja+4CVlwEmIQYUYr0=";
  src = fetchFromGitHub {
    owner = "cdgriffith";
    repo = pname;
    rev = "refs/tags/${version}";
    hash = "sha256-WnqDrVPTlNxz3SDt1wLdZmxtj0Vh6gLHDJlYGEHHxsg=";
  };

  # test data not included on pypi
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "puremagic"