Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pythonOlder, 7 pyxdg, 8}: 9 10buildPythonPackage rec { 11 pname = "pybrowsers"; 12 version = "0.6.0"; 13 pyproject = true; 14 15 disabled = pythonOlder "3.8"; 16 17 src = fetchFromGitHub { 18 owner = "roniemartinez"; 19 repo = "browsers"; 20 rev = "refs/tags/${version}"; 21 hash = "sha256-hjaQUfH7pNwC6+6liOUQQZU6NdhxLmtabvDD7JnQ3GU="; 22 }; 23 24 postPatch = '' 25 sed -i "/--cov/d" pyproject.toml 26 ''; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ pyxdg ]; 31 32 # Tests want to interact with actual browsers 33 doCheck = false; 34 35 pythonImportsCheck = [ "browsers" ]; 36 37 meta = with lib; { 38 description = "Python library for detecting and launching browsers"; 39 homepage = "https://github.com/roniemartinez/browsers"; 40 changelog = "https://github.com/roniemartinez/browsers/releases/tag/${version}"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ fab ]; 43 }; 44}