Unverified Commit c412cc9e authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python3Packages.losant-rest: adjust naming (#495758)

parents 5674b4b4 30f45b43
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@
  setuptools,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "losant-rest";
  version = "2.1.1";
  pyproject = true;
@@ -16,7 +16,7 @@ buildPythonPackage rec {
  src = fetchFromGitHub {
    owner = "Losant";
    repo = "losant-rest-python";
    tag = "v${version}";
    tag = "v${finalAttrs.version}";
    hash = "sha256-B4r3ZCXt3jC/8vtBzct1HEBuMq9NpF2qOlmlhZk9a3Q=";
  };

@@ -29,14 +29,15 @@ buildPythonPackage rec {
    requests-mock
  ];

  enabledTestPaths = [ "tests/platformrest_tests.py" ];
  enabledTestPaths = [ "tests/losant_rest_test.py" ];

  pythonImportsCheck = [ "platformrest" ];
  pythonImportsCheck = [ "losant_rest" ];

  meta = {
    description = "Python module for consuming the Losant IoT Platform API";
    homepage = "https://github.com/Losant/losant-rest-python";
    changelog = "https://github.com/Losant/losant-rest-python/releases/tag/v${finalAttrs.src.tag}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
  };
}
})