Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.uarray: disable #304981

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 41 additions & 21 deletions pkgs/development/python-modules/uarray/default.nix
Original file line number Diff line number Diff line change
@@ -1,44 +1,64 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, matchpy
, numpy
, astunparse
, typing-extensions
, pytestCheckHook
, pytest-cov
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
matchpy,
numpy,
astunparse,
typing-extensions,
pytestCheckHook,
pytest-cov,
pythonAtLeast,
}:

buildPythonPackage rec {
pname = "uarray";
version = "0.8.2";
format = "setuptools";

# broken with Python 3.12; source not updated since Aug 2022
disabled = pythonAtLeast "3.12";

src = fetchFromGitHub {
owner = "Quansight-Labs";
repo = pname;
rev = version;
sha256 = "1x2jp7w2wmn2awyv05xs0frpq0fa0rprwcxyg72wgiss0bnzxnhm";
};

patches = [(
# Fixes a compile error with newer versions of GCC -- should be included
# in the next release after 0.8.2
fetchpatch {
url = "https://github.com/Quansight-Labs/uarray/commit/a2012fc7bb94b3773eb402c6fe1ba1a894ea3d18.patch";
sha256 = "1qqh407qg5dz6x766mya2bxrk0ffw5h17k478f5kcs53g4dyfc3s";
}
)];
patches = [
(
# Fixes a compile error with newer versions of GCC -- should be included
# in the next release after 0.8.2
fetchpatch {
url = "https://github.com/Quansight-Labs/uarray/commit/a2012fc7bb94b3773eb402c6fe1ba1a894ea3d18.patch";
sha256 = "1qqh407qg5dz6x766mya2bxrk0ffw5h17k478f5kcs53g4dyfc3s";
}
)
];

nativeCheckInputs = [ pytestCheckHook pytest-cov ];
propagatedBuildInputs = [ matchpy numpy astunparse typing-extensions ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov
];
propagatedBuildInputs = [
matchpy
numpy
astunparse
typing-extensions
];

# Tests must be run from outside the source directory
preCheck = ''
cd $TMP
'';
pytestFlagsArray = ["--pyargs" "uarray" "-W" "ignore::pytest.PytestRemovedIn8Warning" ];
pytestFlagsArray = [
"--pyargs"
"uarray"
"-W"
"ignore::pytest.PytestRemovedIn8Warning"
];
pythonImportsCheck = [ "uarray" ];

meta = with lib; {
Expand Down