fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
30 lines
702 B
Nix
30 lines
702 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyuseragents";
|
|
version = "1.0.5";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Animenosekai";
|
|
repo = "useragents";
|
|
rev = "v${version}";
|
|
sha256 = "D7Qs3vsfkRH2FDkbfakrR+FfWzQFiOCQM7q9AdJavyU=";
|
|
};
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
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 ];
|
|
maintainers = with maintainers; [ emilytrau ];
|
|
};
|
|
}
|