depot/third_party/nixpkgs/pkgs/development/python-modules/tokenize-rt/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

29 lines
648 B
Nix

{ buildPythonPackage
, lib
, fetchFromGitHub
, isPy27
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "tokenize-rt";
version = "4.2.1";
format = "setuptools";
disabled = isPy27;
src = fetchFromGitHub {
owner = "asottile";
repo = pname;
rev = "v${version}";
hash = "sha256-YNt4YwkuA3DVq4EjJaIES9V3A6ENa3k6/qVKisjA5Pc=";
};
nativeCheckInputs = [ 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 ];
};
}