nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 34 lines 875 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 stdenv, 7}: 8 9buildPythonPackage rec { 10 pname = "aspy-refactor-imports"; 11 version = "4.2.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "asottile"; 16 repo = "aspy.refactor_imports"; 17 tag = "v${version}"; 18 sha256 = "sha256-f5wZfisKz9WGdq6u0rd/zg2CfMwWvQeR8xZQNbD7KfU="; 19 }; 20 21 pythonImportsCheck = [ "aspy.refactor_imports" ]; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 # fails on darwin due to case-insensitive file system 26 disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_application_directory_case" ]; 27 28 meta = { 29 description = "Utilities for refactoring imports in python-like syntax"; 30 homepage = "https://github.com/asottile/aspy.refactor_imports"; 31 license = lib.licenses.mit; 32 maintainers = with lib.maintainers; [ gador ]; 33 }; 34}