python3Packages.tensordict: 0.9.0 -> 0.9.1 (#425091)

This commit is contained in:
Gaétan Lepage 2025-07-15 00:39:49 +02:00 committed by GitHub
commit c1f35c2733
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 61 additions and 2 deletions

View File

@ -0,0 +1,55 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
poetry-core,
# dependencies
packaging,
# tests
jax,
numpy,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pyvers";
version = "0.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "vmoens";
repo = "pyvers";
tag = "v${version}";
hash = "sha256-BUUfb0vI1r/VV5aF9gmqnXGOIWQfBJ98MrcF/IH5CEs=";
};
build-system = [
poetry-core
];
dependencies = [
packaging
];
pythonImportsCheck = [ "pyvers" ];
nativeCheckInputs = [
jax
numpy
pytest-cov-stub
pytestCheckHook
];
meta = {
description = "Python library for dynamic dispatch based on module versions and backends";
homepage = "https://github.com/vmoens/pyvers";
changelog = "https://github.com/vmoens/pyvers/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
};
}

View File

@ -19,6 +19,7 @@
numpy,
orjson,
packaging,
pyvers,
torch,
# tests
@ -28,14 +29,14 @@
buildPythonPackage rec {
pname = "tensordict";
version = "0.9.0";
version = "0.9.1";
pyproject = true;
src = fetchFromGitHub {
owner = "pytorch";
repo = "tensordict";
tag = "v${version}";
hash = "sha256-actBFzWb2JBPsLhRZiD6zRpk7eyX2OHUPMU9JpJ90Wc=";
hash = "sha256-OdS9dw/BtSLZuY857O2njlFOMQj5IJ6v9c2aRP+H1Hc=";
};
build-system = [
@ -56,6 +57,7 @@ buildPythonPackage rec {
numpy
orjson
packaging
pyvers
torch
];

View File

@ -14945,6 +14945,8 @@ self: super: with self; {
pyverilog = callPackage ../development/python-modules/pyverilog { };
pyvers = callPackage ../development/python-modules/pyvers { };
pyversasense = callPackage ../development/python-modules/pyversasense { };
pyvesync = callPackage ../development/python-modules/pyvesync { };