60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
|
{
|
||
|
lib,
|
||
|
buildPythonPackage,
|
||
|
fetchFromGitHub,
|
||
|
ipython,
|
||
|
numpy,
|
||
|
pandas,
|
||
|
pytestCheckHook,
|
||
|
pythonOlder,
|
||
|
requests,
|
||
|
responses,
|
||
|
setuptools,
|
||
|
tqdm,
|
||
|
}:
|
||
|
|
||
|
buildPythonPackage rec {
|
||
|
pname = "cdcs";
|
||
|
version = "0.2.3";
|
||
|
pyproject = true;
|
||
|
|
||
|
disabled = pythonOlder "3.8";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "usnistgov";
|
||
|
repo = "pycdcs";
|
||
|
rev = "refs/tags/v${version}";
|
||
|
hash = "sha256-HhAzULVWkKOWDJ6IZyBy0MYc/YGAFkSTLIgpdyvw1eI=";
|
||
|
};
|
||
|
|
||
|
build-system = [ setuptools ];
|
||
|
|
||
|
dependencies = [
|
||
|
ipython
|
||
|
numpy
|
||
|
pandas
|
||
|
requests
|
||
|
tqdm
|
||
|
];
|
||
|
|
||
|
nativeCheckInputs = [
|
||
|
pytestCheckHook
|
||
|
responses
|
||
|
];
|
||
|
|
||
|
pythonImportsCheck = [ "cdcs" ];
|
||
|
|
||
|
disabledTests = [
|
||
|
# Test is out-dated
|
||
|
"test_head"
|
||
|
];
|
||
|
|
||
|
meta = with lib; {
|
||
|
description = "Python client for performing REST calls to configurable data curation system (CDCS) databases";
|
||
|
homepage = "https://github.com/usnistgov/pycdcs";
|
||
|
changelog = "https://github.com/usnistgov/pycdcs/releases/tag/v${version}";
|
||
|
license = licenses.mit;
|
||
|
maintainers = with maintainers; [ fab ];
|
||
|
};
|
||
|
}
|