Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / eradicate / default.nix
blob511f8d17ecbe191ce96552cba66290798e4a543e
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "eradicate";
10   version = "2.3.0";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "wemake-services";
17     repo = pname;
18     rev = "refs/tags/${version}";
19     hash = "sha256-ikiqNe1a+OeRraNBbtAx6v3LsTajWlgxm4wR2Tcbmjk=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   pythonImportsCheck = [
27     "eradicate"
28   ];
30   pytestFlagsArray = [
31     "test_eradicate.py"
32   ];
34   meta = with lib; {
35     description = "Library to remove commented-out code from Python files";
36     homepage = "https://github.com/myint/eradicate";
37     changelog = "https://github.com/wemake-services/eradicate/releases/tag/${version}";
38     license = with licenses; [ mit ];
39     maintainers = with maintainers; [ mmlb ];
40   };