xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / development / python-modules / motioneye-client / default.nix
blob487de3c3228cdcab9c4538aa729997b8233d40cc
2   lib,
3   stdenv,
4   aiohttp,
5   buildPythonPackage,
6   fetchFromGitHub,
7   poetry-core,
8   pytest-aiohttp,
9   pytest-timeout,
10   pytestCheckHook,
11   pythonOlder,
14 buildPythonPackage rec {
15   pname = "motioneye-client";
16   version = "0.3.14";
17   format = "pyproject";
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "dermotduffy";
23     repo = pname;
24     rev = "v${version}";
25     hash = "sha256-kgFSd5RjO+OtnPeAOimPTDVEfJ47rXh2Ku5xEYStHv8=";
26   };
28   postPatch = ''
29     substituteInPlace pyproject.toml \
30       --replace 'aiohttp = "^3.8.1,!=3.8.2,!=3.8.3"' 'aiohttp = "*"' \
31       --replace " --cov-report=html:htmlcov --cov-report=xml:coverage.xml --cov-report=term-missing --cov=motioneye_client --cov-fail-under=100" ""
32   '';
34   nativeBuildInputs = [ poetry-core ];
36   propagatedBuildInputs = [ aiohttp ];
38   nativeCheckInputs = [
39     pytest-aiohttp
40     pytest-timeout
41     pytestCheckHook
42   ];
44   pythonImportsCheck = [ "motioneye_client" ];
46   meta = with lib; {
47     description = "Python library for motionEye";
48     homepage = "https://github.com/dermotduffy/motioneye-client";
49     license = with licenses; [ mit ];
50     maintainers = with maintainers; [ fab ];
51     broken = stdenv.hostPlatform.isDarwin;
52   };