nixpkgs/pkgs/development/python-modules/flynt/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

33 lines
734 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, astor
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "flynt";
version = "0.66";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "ikamensh";
repo = "flynt";
rev = version;
hash = "sha256-DV433wqLjF5k4g8J7rj5gZfaw+Y4/TDOoFKo3eKDjZ4=";
};
propagatedBuildInputs = [ astor ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "command line tool to automatically convert a project's Python code from old format style strings into Python 3.6+'s f-strings";
homepage = "https://github.com/ikamensh/flynt";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}