1{ stdenv, buildPythonPackage, fetchFromGitHub, ua-parser }: 2 3buildPythonPackage rec { 4 pname = "user-agents"; 5 version = "1.1.0"; 6 7 # PyPI is missing devices.json 8 src = fetchFromGitHub { 9 owner = "selwin"; 10 repo = "python-user-agents"; 11 rev = "v${version}"; 12 sha256 = "14kxd780zhp8718xr1z63xffaj3bvxgr4pldh9sv943m4hvi0gw5"; 13 }; 14 15 propagatedBuildInputs = [ ua-parser ]; 16 17 doCheck = false; # some tests fail due to ua-parser bump to 0.8.0 18 19 meta = with stdenv.lib; { 20 description = "A Python library to identify devices by parsing user agent strings"; 21 homepage = https://github.com/selwin/python-user-agents; 22 license = licenses.mit; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ dotlambda ]; 25 }; 26}