Skip to content

Commit 53e62be

Browse files
authored
Merge pull request #334113 from dotlambda/python3Packages.pyblu
python312Packages.pyblu: run tests
2 parents b22a932 + 02598b4 commit 53e62be

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

pkgs/development/python-modules/pyblu/default.nix

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{
22
aiohttp,
3+
aioresponses,
34
buildPythonPackage,
4-
fetchPypi,
5+
fetchFromGitHub,
56
lib,
67
poetry-core,
8+
pytest-asyncio,
9+
pytestCheckHook,
710
xmltodict,
811
}:
912

@@ -12,9 +15,11 @@ buildPythonPackage rec {
1215
version = "0.4.0";
1316
pyproject = true;
1417

15-
src = fetchPypi {
16-
inherit pname version;
17-
hash = "sha256-qMbwrRD7ZUsHHOLF9yPvAxiTmJ8vJX1cyHX+4ONtsQ8=";
18+
src = fetchFromGitHub {
19+
owner = "LouisChrist";
20+
repo = "pyblu";
21+
rev = "refs/tags/v${version}";
22+
hash = "sha256-Pj0L9D5j+5koqhbpr4maa8aLGka1FghKkMEbyKi/D3E=";
1823
};
1924

2025
build-system = [ poetry-core ];
@@ -26,9 +31,11 @@ buildPythonPackage rec {
2631

2732
pythonImportsCheck = [ "pyblu" ];
2833

29-
# no tests on PyPI, no tags on GitHub
30-
# https://github.com/LouisChrist/pyblu/issues/19
31-
doCheck = false;
34+
nativeCheckInputs = [
35+
aioresponses
36+
pytest-asyncio
37+
pytestCheckHook
38+
];
3239

3340
meta = {
3441
description = "BluOS API client";

0 commit comments

Comments
 (0)