depot/third_party/nixpkgs/pkgs/development/python-modules/tokenize-rt/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

37 lines
708 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";
homepage = "https://github.com/asottile/tokenize-rt";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}