8056f9250c
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
48 lines
902 B
Nix
48 lines
902 B
Nix
{ lib
|
|
, aiohttp
|
|
, backoff
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, setuptools-scm
|
|
, yarl
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "geocachingapi";
|
|
version = "0.2.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Sholofly";
|
|
repo = "geocachingapi-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-C4nj4KFEwsY5V5f0Q1x+9sD8Ihz5m7b3jg2pOyB/pDg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aiohttp
|
|
backoff
|
|
yarl
|
|
];
|
|
|
|
# Tests require a token and network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"geocachingapi"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python API to control the Geocaching API";
|
|
homepage = "https://github.com/Sholofly/geocachingapi-python";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|