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