Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 28 lines 619 B view raw
1{ buildPythonPackage 2, lib 3, fetchFromGitHub 4, isPy27 5, pytestCheckHook 6}: 7 8buildPythonPackage rec { 9 pname = "tokenize-rt"; 10 version = "4.1.0"; 11 disabled = isPy27; 12 13 src = fetchFromGitHub { 14 owner = "asottile"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-9qamHk2IZRmgGNFlYkSRks6mRVNlYfetpK/7rsfK9tc="; 18 }; 19 20 checkInputs = [ pytestCheckHook ]; 21 22 meta = with lib; { 23 description = "A wrapper around the stdlib `tokenize` which roundtrips"; 24 homepage = "https://github.com/asottile/tokenize-rt"; 25 license = licenses.mit; 26 maintainers = with maintainers; [ lovesegfault ]; 27 }; 28}