mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
79d5824997
Diff: https://github.com/mgedmin/findimports/compare/refs/tags/2.5.1...2.5.2 Changelog: https://github.com/mgedmin/findimports/blob/2.5.2/CHANGES.rst
49 lines
1022 B
Nix
49 lines
1022 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "findimports";
|
|
version = "2.5.2";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mgedmin";
|
|
repo = "findimports";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-W4GKnIYOh3bk18yviL7GfMyXoWNLFWWDhKur9id1a78=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
pythonImportsCheck = [ "findimports" ];
|
|
|
|
checkPhase = ''
|
|
# Tests fails
|
|
rm tests/cmdline.txt
|
|
|
|
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";
|
|
changelog = "https://github.com/mgedmin/findimports/blob/${version}/CHANGES.rst";
|
|
license = with licenses; [
|
|
gpl2Only # or
|
|
gpl3Only
|
|
];
|
|
maintainers = with maintainers; [ fab ];
|
|
mainProgram = "findimports";
|
|
};
|
|
}
|