nixpkgs/pkgs/development/python-modules/ondilo/default.nix
2024-03-23 18:58:34 +01:00

50 lines
924 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, oauthlib
, pythonOlder
, requests
, requests-oauthlib
, setuptools
}:
buildPythonPackage rec {
pname = "ondilo";
version = "0.4.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "JeromeHXP";
repo = "ondilo";
rev = "refs/tags/${version}";
hash = "sha256-BieWdPakQts0QxzQzJYlP6a7ieZ40rAyYqhy8zEvU38=";
};
build-system = [
setuptools
];
dependencies = [
oauthlib
requests
requests-oauthlib
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"ondilo"
];
meta = with lib; {
description = "Python package to access Ondilo ICO APIs";
homepage = "https://github.com/JeromeHXP/ondilo";
changelog = "https://github.com/JeromeHXP/ondilo/releases/tag/${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}