diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/user-agents/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/user-agents/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/user-agents/default.nix b/nixpkgs/pkgs/development/python-modules/user-agents/default.nix new file mode 100644 index 000000000000..d01c601c82a0 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/user-agents/default.nix @@ -0,0 +1,24 @@ +{ lib, buildPythonPackage, fetchFromGitHub, ua-parser }: + +buildPythonPackage rec { + pname = "user-agents"; + version = "2.2.0"; + + # PyPI is missing devices.json + src = fetchFromGitHub { + owner = "selwin"; + repo = "python-user-agents"; + rev = "v${version}"; + sha256 = "0pcbjqj21c2ixhl414bh2h8khi8y1igzfpkyqwan1pakix0lq45a"; + }; + + propagatedBuildInputs = [ ua-parser ]; + + meta = with lib; { + description = "A Python library to identify devices by parsing user agent strings"; + homepage = "https://github.com/selwin/python-user-agents"; + license = licenses.mit; + platforms = platforms.unix; + maintainers = with maintainers; [ dotlambda ]; + }; +} |