Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.1 kB · 60 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ 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 ]; };}