Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / dynalite-devices / default.nix
blob7066271182ef43bb453ebde760c0c165b90cab5c
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytest-asyncio
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "dynalite-devices";
11   version = "0.47";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "ziv1234";
18     repo = "python-dynalite-devices";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-kJo4e5vhgWzijLUhQd9VBVk1URpg9SXhOA60dJYashM=";
21   };
23   postPatch = ''
24     sed -i '/^addopts/d' setup.cfg
25   '';
27   nativeCheckInputs = [
28     pytest-asyncio
29     pytestCheckHook
30   ];
32   pytestFlagsArray = [
33     "--asyncio-mode=auto"
34   ];
36   pythonImportsCheck = [
37     "dynalite_devices_lib"
38   ];
40   meta = with lib; {
41     description = "An unofficial Dynalite DyNET interface creating devices";
42     homepage = "https://github.com/ziv1234/python-dynalite-devices";
43     changelog = "https://github.com/ziv1234/python-dynalite-devices/releases/tag/v${version}";
44     license = licenses.mit;
45     maintainers = with maintainers; [ dotlambda ];
46   };