nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 58 lines 1.1 kB view raw
1{ lib 2, fetchFromGitHub 3, python3Packages 4}: 5 6python3Packages.buildPythonApplication rec { 7 pname = "refurb"; 8 version = "1.13.0"; 9 format = "pyproject"; 10 11 src = fetchFromGitHub { 12 owner = "dosisod"; 13 repo = "refurb"; 14 rev = "refs/tags/v${version}"; 15 hash = "sha256-e/gKBgbtjO2XYnAIdHDoVJWyP6cyvsuIFLrV/eqjces="; 16 }; 17 18 nativeBuildInputs = with python3Packages; [ 19 poetry-core 20 ]; 21 22 propagatedBuildInputs = with python3Packages; [ 23 mypy 24 mypy-extensions 25 tomli 26 typing-extensions 27 ]; 28 29 nativeCheckInputs = with python3Packages; [ 30 attrs 31 click 32 colorama 33 iniconfig 34 mccabe 35 packaging 36 pathspec 37 platformdirs 38 pluggy 39 py 40 pyparsing 41 pytestCheckHook 42 ]; 43 44 postPatch = '' 45 sed -i "/^addopts/d" pyproject.toml 46 ''; 47 48 pythonImportsCheck = [ 49 "refurb" 50 ]; 51 52 meta = with lib; { 53 description = "A tool for refurbishing and modernizing Python codebases"; 54 homepage = "https://github.com/dosisod/refurb"; 55 license = with licenses; [ gpl3Only ]; 56 maintainers = with maintainers; [ knl ]; 57 }; 58}