forked from mirrors/nixpkgs
python3Packages.pysolcast: init at 1.0.7
This commit is contained in:
parent
a3f918d340
commit
ab10be129e
61
pkgs/development/python-modules/pysolcast/default.nix
Normal file
61
pkgs/development/python-modules/pysolcast/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, isodate
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pyyaml
|
||||||
|
, requests
|
||||||
|
, responses
|
||||||
|
, setuptools-scm
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pysolcast";
|
||||||
|
version = "1.0.7";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "mcaulifn";
|
||||||
|
repo = "solcast";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "J4D7W89Qz1Nv4DeqOmHVAWfmThlY5puBjSClRkfwhVw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
setuptools-scm
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
isodate
|
||||||
|
pyyaml
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
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";
|
||||||
|
# No license statement present
|
||||||
|
# https://github.com/mcaulifn/solcast/issues/70
|
||||||
|
license = with licenses; [ unfree ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5845,6 +5845,8 @@ in {
|
||||||
|
|
||||||
pyskyqhub = callPackage ../development/python-modules/pyskyqhub { };
|
pyskyqhub = callPackage ../development/python-modules/pyskyqhub { };
|
||||||
|
|
||||||
|
pysolcast = callPackage ../development/python-modules/pysolcast { };
|
||||||
|
|
||||||
pysyncthru = callPackage ../development/python-modules/pysyncthru { };
|
pysyncthru = callPackage ../development/python-modules/pysyncthru { };
|
||||||
|
|
||||||
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };
|
||||||
|
|
Loading…
Reference in a new issue