Commit decd2f9b authored by Robert Schütz's avatar Robert Schütz
Browse files
parent 1afb0f43
Loading
Loading
Loading
Loading
+11 −6
Original line number Diff line number Diff line
@@ -14,32 +14,37 @@

buildPythonPackage rec {
  pname = "py-sucks";
  version = "0.9.10";
  version = "0.9.11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "mib1185";
    repo = "py-sucks";
    tag = "v${version}";
    hash = "sha256-MjlE5HdxChAgV/O7cD3foqkmKie7FgRRxvOcW+NAtfA=";
    hash = "sha256-srj/3x04R9KgbdC6IgbQdgUz+srAx0OttB6Ndb2+Nh4=";
  };

  build-system = [ setuptools ];

  dependencies = [
    click
    pycountry-convert
    pycryptodome
    requests
    sleekxmppfs
  ];

  optional-dependencies = {
    cli = [
      click
      pycountry-convert
    ];
  };

  pythonImportsCheck = [ "sucks" ];

  nativeCheckInputs = [
    requests-mock
    pytestCheckHook
  ];
  ] ++ lib.flatten (lib.attrValues optional-dependencies);

  disabledTests = [
    # assumes $HOME is at a specific place
@@ -47,7 +52,7 @@ buildPythonPackage rec {
  ];

  meta = {
    changelog = "https://github.com/mib1185/py-sucks/releases/tag/v${version}";
    changelog = "https://github.com/mib1185/py-sucks/releases/tag/${src.tag}";
    description = "Library for controlling certain robot vacuums";
    homepage = "https://github.com/mib1185/py-sucks";
    license = lib.licenses.gpl3Only;