Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub,
# build-system setuptools,
# dependencies requests, urllib3,
# tests pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "inventree"; version = "0.23.2"; pyproject = true; __structuredAttrs = true;
src = fetchFromGitHub { owner = "inventree"; repo = "inventree-python"; tag = finalAttrs.version; hash = "sha256-YGzy58AbDdZGqkRNw/mRpcmbzsP5rBk2H9diz9RDhfM="; };
build-system = [ setuptools ];
dependencies = [ requests urllib3 ];
nativeCheckInputs = [ pytestCheckHook ]; pytestImportsCheck = [ "inventree" ];
disabledTests = [ # Disable tests requiring dev server "file_download" "timeout" "details" "token" "create_stuff" "add_result" "add_template" "get_widget" ];
disabledTestPaths = [ # Disable tests requiring dev server "test/test_base.py" "test/test_build.py" "test/test_company.py" "test/test_currency.py" "test/test_internal_price.py" "test/test_label.py" "test/test_order.py" "test/test_part.py" "test/test_plugin.py" "test/test_project_codes.py" "test/test_report.py" "test/test_stock.py" ];
meta = { description = "Python library for communication with inventree via API"; homepage = "https://github.com/inventree/inventree-python/"; changelog = "https://github.com/inventree/inventree-python/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ gigahawk ]; };})