nixpkgs/pkgs/development/python-modules/aspy-refactor-imports/default.nix
adisbladis 02dab4ab5c python3.pkgs.*: Explicitly pass buildPythonPackage format parameter
Long term we should move everything over to `pyproject = true`, but in
the mean time we can work towards deprecating the implicit `format` paremeter.

cc https://github.com/NixOS/nixpkgs/issues/253154
cc @mweinelt @figsoda
2023-12-07 17:46:49 +01:00

39 lines
907 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, stdenv
}:
buildPythonPackage rec {
pname = "aspy-refactor-imports";
version = "3.0.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "asottile";
repo = "aspy.refactor_imports";
rev = "v${version}";
sha256 = "MlCM3zNTQZJ1RWrTQG0AN28RUepWINKCeLENykbu2nw=";
};
pythonImportsCheck = [
"aspy.refactor_imports"
];
nativeCheckInputs = [
pytestCheckHook
];
# fails on darwin due to case-insensitive file system
disabledTests = lib.optionals stdenv.isDarwin ["test_application_directory_case"];
meta = with lib; {
description = "Utilities for refactoring imports in python-like syntax.";
homepage = "https://github.com/asottile/aspy.refactor_imports";
license = licenses.mit;
maintainers = with maintainers; [ gador ];
};
}