nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 31 lines 662 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 setuptools, 6}: 7 8buildPythonPackage rec { 9 pname = "thttp"; 10 version = "1.3.0"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "sesh"; 15 repo = "thttp"; 16 tag = version; 17 hash = "sha256-e15QMRMpTcWo8TfH3tk23ybSlXFb8F4B/eqAp9oyK8g="; 18 }; 19 20 nativeBuildInputs = [ setuptools ]; 21 22 pythonImportsCheck = [ "thttp" ]; 23 24 meta = { 25 description = "Lightweight wrapper around urllib"; 26 homepage = "https://github.com/sesh/thttp"; 27 changelog = "https://github.com/sesh/thttp/releases/tag/${version}"; 28 license = lib.licenses.mit; 29 maintainers = with lib.maintainers; [ fab ]; 30 }; 31}