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