python311Packages.boa-api: add format

- disable on unsupported Python relases
This commit is contained in:
Fabian Affolter 2023-05-29 08:15:54 +02:00 committed by GitHub
parent 5c06b08329
commit 5b7fc70b8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1,29 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "boa-api"; pname = "boa-api";
version = "0.1.14"; version = "0.1.14";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "boalang"; owner = "boalang";
repo = "api-python"; repo = "api-python";
rev = "v${version}"; rev = "refs/tags/v${version}";
sha256 = "sha256-8tt68NLi5ewSKiHdu3gDawTBPylbDmB4zlUUqa7EQuY="; sha256 = "sha256-8tt68NLi5ewSKiHdu3gDawTBPylbDmB4zlUUqa7EQuY=";
}; };
# upstream has no tests # upstream has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "boaapi" ]; pythonImportsCheck = [
"boaapi"
];
meta = { meta = {
homepage = "https://github.com/boalang/api-python"; homepage = "https://github.com/boalang/api-python";