mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
29 lines
665 B
Nix
29 lines
665 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyuseragents";
|
|
version = "1.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Animenosekai";
|
|
repo = "useragents";
|
|
rev = "v${version}";
|
|
sha256 = "D7Qs3vsfkRH2FDkbfakrR+FfWzQFiOCQM7q9AdJavyU=";
|
|
};
|
|
|
|
checkInputs = [ 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; [ angustrau ];
|
|
};
|
|
}
|