Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 763 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, six 5, tldextract 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "surt"; 11 version = "0.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "internetarchive"; 15 repo = "surt"; 16 rev = "6934c321b3e2f66af9c001d882475949f00570c5"; # Has no git tag 17 hash = "sha256-pSMNpFfq2V0ANWNFPcb1DwPHccbfddo9P4xZ+ghwbz4="; 18 }; 19 20 propagatedBuildInputs = [ 21 six 22 tldextract 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 pythonImportsCheck = [ "surt" ]; 30 31 meta = with lib; { 32 description = "Sort-friendly URI Reordering Transform (SURT) python module"; 33 homepage = "https://github.com/internetarchive/surt"; 34 license = licenses.agpl3Only; 35 maintainers = with maintainers; [ Luflosi ]; 36 }; 37}