567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
934 B
Nix
45 lines
934 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
requests,
|
|
setuptools,
|
|
testfixtures,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "openerz-api";
|
|
version = "0.3.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "misialq";
|
|
repo = "openerz-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-CwK61StspZJt0TALv76zfibUzlriwp9HRoYOtX9bU+c=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ requests ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
testfixtures
|
|
];
|
|
|
|
pythonImportsCheck = [ "openerz_api" ];
|
|
|
|
meta = {
|
|
description = "Python module to interact with the OpenERZ API";
|
|
homepage = "https://github.com/misialq/openerz-api";
|
|
changelog = "https://github.com/misialq/openerz-api/releases/tag/v${version}";
|
|
license = with lib.licenses; [ mit ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|