kdePackages.kirigami-addons: 1.5.0 -> 1.6.0 (#360539)
[NixPkgs.git] / pkgs / development / python-modules / tokenize-rt / default.nix
blob1634f768136307f76836938709a5cf9b744bbc95
2   buildPythonPackage,
3   lib,
4   fetchFromGitHub,
5   isPy27,
6   setuptools,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "tokenize-rt";
12   version = "5.2.0";
13   pyproject = true;
15   disabled = isPy27;
17   src = fetchFromGitHub {
18     owner = "asottile";
19     repo = pname;
20     rev = "v${version}";
21     hash = "sha256-G4Dn6iZLVOovzfEt9eMzp93mTX+bo0tHI5cCbaJLxBQ=";
22   };
24   nativeBuildInputs = [ setuptools ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   meta = with lib; {
29     description = "Wrapper around the stdlib `tokenize` which roundtrips";
30     mainProgram = "tokenize-rt";
31     homepage = "https://github.com/asottile/tokenize-rt";
32     license = licenses.mit;
33     maintainers = with maintainers; [ lovesegfault ];
34   };