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:
parent
1b951d5f0b
commit
20058c63c0
2 changed files with 77 additions and 0 deletions
75
pkgs/development/python-modules/nominal/default.nix
Normal file
75
pkgs/development/python-modules/nominal/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue