Commit 8a25604c authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.findimports: refactor

parent 438aabfa
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -3,22 +3,27 @@
, fetchFromGitHub
, python
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "findimports";
  version = "2.4.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.6";
  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "mgedmin";
    repo = pname;
    repo = "findimports";
    rev = "refs/tags/${version}";
    hash = "sha256-ar05DYSc/raYC1RJyLCxDYnd7Zjx20aczywlb6wc67Y=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  pythonImportsCheck = [
    "findimports"
  ];