Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / brother / default.nix
blobae0a4f131e2a1c9d7e79a10cb76afd0c4cffafcb
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , dacite
5 , pysnmplib
6 , pytest-asyncio
7 , pytest-error-for-skips
8 , pytestCheckHook
9 , pythonOlder
12 buildPythonPackage rec {
13   pname = "brother";
14   version = "2.3.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.8";
19   src = fetchFromGitHub {
20     owner = "bieniu";
21     repo = pname;
22     rev = "refs/tags/${version}";
23     hash = "sha256-f55daLPBepNDIfZFAZWdkAvEkNb0cyYQt9LkqyIMrnY=";
24   };
26   propagatedBuildInputs = [
27     dacite
28     pysnmplib
29   ];
31   nativeCheckInputs = [
32     pytest-asyncio
33     pytest-error-for-skips
34     pytestCheckHook
35   ];
37   pythonImportsCheck = [
38     "brother"
39   ];
41   meta = with lib; {
42     description = "Python wrapper for getting data from Brother laser and inkjet printers via SNMP";
43     homepage = "https://github.com/bieniu/brother";
44     changelog = "https://github.com/bieniu/brother/releases/tag/${version}";
45     license = licenses.asl20;
46     maintainers = with maintainers; [ hexa ];
47   };