depot/third_party/nixpkgs/pkgs/development/python-modules/tokenize-rt/default.nix
Default email 620eecebfb Project import generated by Copybara.
GitOrigin-RevId: 2deb07f3ac4eeb5de1c12c4ba2911a2eb1f6ed61
2021-10-28 08:52:43 +02:00

28 lines
619 B
Nix

{ buildPythonPackage
, lib
, fetchFromGitHub
, isPy27
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tokenize-rt";
version = "4.2.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
sha256 = "sha256-YNt4YwkuA3DVq4EjJaIES9V3A6ENa3k6/qVKisjA5Pc=";
};
checkInputs = [ pytestCheckHook ];
meta = with lib; {
description = "A wrapper around the stdlib `tokenize` which roundtrips";
homepage = "https://github.com/asottile/tokenize-rt";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}