My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyuseragents/default.nix

28 lines
665 B

{ 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; [ emilytrau ];
};
}