Files
nixpkgs/pkgs/development/python-modules/pins/default.nix
2025-09-14 17:38:31 +00:00

101 lines
1.8 KiB
Nix

{
lib,
adlfs,
appdirs,
buildPythonPackage,
databackend,
fastparquet,
fetchFromGitHub,
fsspec,
gcsfs,
humanize,
importlib-metadata,
importlib-resources,
jinja2,
joblib,
pandas,
pyarrow,
pytest-cases,
pytest-parallel,
pytestCheckHook,
pythonOlder,
pyyaml,
requests,
s3fs,
setuptools-scm,
setuptools,
typing-extensions,
xxhash,
}:
buildPythonPackage rec {
pname = "pins";
version = "0.9.1";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "rstudio";
repo = "pins-python";
tag = "v${version}";
hash = "sha256-fDbgas4RG4cJRqrISWmrMUQUycQindlqF9/jA5R1TF8=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
appdirs
databackend
fsspec
humanize
importlib-metadata
importlib-resources
jinja2
joblib
pandas
pyyaml
requests
typing-extensions
xxhash
];
optional-dependencies = {
aws = [ s3fs ];
azure = [ adlfs ];
gcs = [ gcsfs ];
};
nativeCheckInputs = [
fastparquet
pyarrow
pytest-cases
pytest-parallel
pytestCheckHook
]
++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "pins" ];
enabledTestPaths = [ "pins/tests/" ];
disabledTestPaths = [
# Tests require network access
"pins/tests/test_boards.py"
"pins/tests/test_compat.py"
"pins/tests/test_constructors.py"
"pins/tests/test_rsconnect_api.py"
];
meta = with lib; {
description = "Module to publishes data, models and other Python objects";
homepage = "https://github.com/rstudio/pins-python";
changelog = "https://github.com/rstudio/pins-python/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}