forked from mirrors/nixpkgs
36562591c0
Diff: https://github.com/mcaulifn/solcast/compare/refs/tags/v1.0.13...v1.0.14 Changelog: https://github.com/mcaulifn/solcast/releases/tag/v1.0.14
61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, isodate
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, requests
|
|
, responses
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysolcast";
|
|
version = "1.0.14";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mcaulifn";
|
|
repo = "solcast";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-SI8lRihzJClciPLX9DXOO0K7YWgix74aM784j7fVu/g=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
isodate
|
|
pyyaml
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
responses
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace "pytest-runner" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"pysolcast"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for interacting with the Solcast API";
|
|
homepage = "https://github.com/mcaulifn/solcast";
|
|
changelog = "https://github.com/mcaulifn/solcast/releases/tag/v${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|