1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "pyuseragents"; 9 version = "1.0.5"; 10 11 src = fetchFromGitHub { 12 owner = "Animenosekai"; 13 repo = "useragents"; 14 rev = "v${version}"; 15 sha256 = "D7Qs3vsfkRH2FDkbfakrR+FfWzQFiOCQM7q9AdJavyU="; 16 }; 17 18 nativeCheckInputs = [ pytestCheckHook ]; 19 pytestFlagsArray = [ "test.py" ]; 20 pythonImportsCheck = [ "pyuseragents" ]; 21 22 meta = with lib; { 23 description = "Giving you a random User-Agent Header"; 24 homepage = "https://github.com/Animenosekai/useragents"; 25 license = with licenses; [ mit ]; 26 maintainers = with maintainers; [ emilytrau ]; 27 }; 28}