2021-08-11 14:56:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyuseragents";
|
|
|
|
version = "1.0.5";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Animenosekai";
|
|
|
|
repo = "useragents";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "D7Qs3vsfkRH2FDkbfakrR+FfWzQFiOCQM7q9AdJavyU=";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-08-11 14:56:57 +00:00
|
|
|
pytestFlagsArray = [ "test.py" ];
|
|
|
|
pythonImportsCheck = [ "pyuseragents" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Giving you a random User-Agent Header";
|
|
|
|
homepage = "https://github.com/Animenosekai/useragents";
|
|
|
|
license = with licenses; [ mit ];
|
2022-02-20 05:27:41 +00:00
|
|
|
maintainers = with maintainers; [ emilytrau ];
|
2021-08-11 14:56:57 +00:00
|
|
|
};
|
|
|
|
}
|