depot/third_party/nixpkgs/pkgs/development/python-modules/tokenize-rt/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
737 B
Nix

{
buildPythonPackage,
lib,
fetchFromGitHub,
isPy27,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "tokenize-rt";
version = "5.2.0";
pyproject = true;
disabled = isPy27;
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
hash = "sha256-G4Dn6iZLVOovzfEt9eMzp93mTX+bo0tHI5cCbaJLxBQ=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A wrapper around the stdlib `tokenize` which roundtrips";
mainProgram = "tokenize-rt";
homepage = "https://github.com/asottile/tokenize-rt";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}