From a023ae01ccbe652b477e2bce596cc23ad3f9e00f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Feb 2022 23:01:49 +0100 Subject: [PATCH] python3Packages.findimports: init at 2.2.0 --- .../python-modules/findimports/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/findimports/default.nix diff --git a/pkgs/development/python-modules/findimports/default.nix b/pkgs/development/python-modules/findimports/default.nix new file mode 100644 index 000000000000..44f1a29a8f2f --- /dev/null +++ b/pkgs/development/python-modules/findimports/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, python +, pythonOlder +}: + +buildPythonPackage rec { + pname = "findimports"; + version = "2.2.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; + + src = fetchFromGitHub { + owner = "mgedmin"; + repo = pname; + rev = version; + hash = "sha256-p13GVDXDOzOiTnRgtF7UxN1vwZRMa7wVEXJQrFQV7RU="; + }; + + pythonImportsCheck = [ + "findimports" + ]; + + checkPhase = '' + runHook preCheck + ${python.interpreter} testsuite.py + runHook postCheck + ''; + + meta = with lib; { + description = "Module for the analysis of Python import statements"; + homepage = "https://github.com/mgedmin/findimports"; + license = with licenses; [ gpl2Only /* or */ gpl3Only ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index defea641afa5..2f1e1741ec52 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2837,6 +2837,8 @@ in { finalfusion = callPackage ../development/python-modules/finalfusion { }; + findimports = callPackage ../development/python-modules/findimports { }; + fingerprints = callPackage ../development/python-modules/fingerprints { }; finitude = callPackage ../development/python-modules/finitude { };