python3Packages.losant-rest: adjust naming (#495758)
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user