ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / pvo / default.nix
blob0b107f1550607e141b3d9d264fd98e0614c24ecb
1 { lib
2 , aiohttp
3 , aresponses
4 , buildPythonPackage
5 , fetchFromGitHub
6 , poetry-core
7 , pydantic
8 , pytest-asyncio
9 , pytestCheckHook
10 , pythonOlder
11 , yarl
14 buildPythonPackage rec {
15   pname = "pvo";
16   version = "0.2.2";
17   format = "pyproject";
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "frenck";
23     repo = "python-pvoutput";
24     rev = "v${version}";
25     sha256 = "sha256-2/O81MnFYbdOrzLiTSoX7IW+3ZGyyE/tIqgKr/sEaHI=";
26   };
28   nativeBuildInputs = [
29     poetry-core
30   ];
32   propagatedBuildInputs = [
33     aiohttp
34     pydantic
35     yarl
36   ];
38   checkInputs = [
39     aresponses
40     pytest-asyncio
41     pytestCheckHook
42   ];
44   postPatch = ''
45     # Upstream doesn't set a version for the pyproject.toml
46     substituteInPlace pyproject.toml \
47       --replace "0.0.0" "${version}" \
48       --replace "--cov" ""
49   '';
51   pythonImportsCheck = [
52     "pvo"
53   ];
55   meta = with lib; {
56     description = "Python module to interact with the PVOutput API";
57     homepage = "https://github.com/frenck/python-pvoutput";
58     license = licenses.mit;
59     maintainers = with maintainers; [ fab ];
60   };