blob: 0a6c9ef3373693bc337a96403773aaa70fbf4312 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "eradicate";
version = "3.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "wemake-services";
repo = "eradicate";
tag = version;
hash = "sha256-D9V9PQ3HVmShmPgTInOJaVmujy1fQyQn6qYn/Pa0kMg=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "eradicate" ];
enabledTestPaths = [ "test_eradicate.py" ];
meta = {
description = "Library to remove commented-out code from Python files";
mainProgram = "eradicate";
homepage = "https://github.com/myint/eradicate";
changelog = "https://github.com/wemake-services/eradicate/releases/tag/${src.tag}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ mmlb ];
};
}
|