1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-10 18:12:34 +09:00

python312Packages.nominal: init at 1.59.0

This commit is contained in:
Alexander Reynolds 2025-06-06 16:07:02 -04:00
parent 1b951d5f0b
commit 20058c63c0
2 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,75 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
requests,
nominal-api,
nominal-api-protos,
python-dateutil,
conjure-python-client,
pandas,
typing-extensions,
click,
pyyaml,
tabulate,
ffmpeg-python,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "nominal";
version = "1.59.0";
pyproject = true;
src = fetchFromGitHub {
owner = "nominal-io";
repo = "nominal-client";
tag = "v${version}";
hash = "sha256-wWy7i9lWZzDCx3cPyViLp7r7hSSDQbqdSUABX7L0LSE=";
};
build-system = [ hatchling ];
dependencies = [
requests
conjure-python-client
nominal-api
python-dateutil
pandas
typing-extensions
click
pyyaml
tabulate
ffmpeg-python
];
optional-dependencies = {
protos = [ nominal-api-protos ];
# tdms = [ nptdms ]; nptdms is not in nixpkgs
};
nativeCheckInputs = [
nominal-api-protos
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [
"nominal"
"nominal.core"
];
disabledTestPaths = [
"tests/cli/test_auth.py::test_good_request"
];
meta = {
description = "Automate Nominal workflows in Python";
homepage = "https://github.com/nominal-io/nominal-client";
changelog = "https://github.com/nominal-io/nominal-client/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ alkasm ];
};
}

View file

@ -10183,6 +10183,8 @@ self: super: with self; {
nomadnet = callPackage ../development/python-modules/nomadnet { };
nominal = callPackage ../development/python-modules/nominal { };
nominal-api = callPackage ../development/python-modules/nominal-api { };
nominal-api-protos = callPackage ../development/python-modules/nominal-api-protos { };