mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
42 lines
869 B
Nix
42 lines
869 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "eradicate";
|
|
version = "2.2.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "wemake-services";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-pVjvzW3UVeLMLLYcU0SIE19GEHFmouoA/JKSweTZSGo=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"eradicate"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"test_eradicate.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Library to remove commented-out code from Python files";
|
|
homepage = "https://github.com/myint/eradicate";
|
|
changelog = "https://github.com/wemake-services/eradicate/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ mmlb ];
|
|
};
|
|
}
|