nixpkgs/pkgs/development/python-modules/importmagic/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

32 lines
673 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, six
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "importmagic";
version = "0.1.7";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "3f7757a5b74c9a291e20e12023bb3bf71bc2fa3adfb15a08570648ab83eaf8d8";
};
propagatedBuildInputs = [ six ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "importmagic" ];
meta = with lib; {
description = "Python Import Magic - automagically add, remove and manage imports";
homepage = "https://github.com/alecthomas/importmagic";
license = licenses.bsd0;
maintainers = with maintainers; [ onny ];
};
}