python311Packages.hologram: pull patch to fix tests
The tests were failing due to dataclass changes in Python 3.11.
This commit is contained in:
parent
71d2dd203d
commit
f2325ea37f
|
@ -1,11 +1,12 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonAtLeast
|
||||
, fetchpatch
|
||||
, jsonschema
|
||||
, pytestCheckHook
|
||||
, python-dateutil
|
||||
, setuptools
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -13,9 +14,6 @@ buildPythonPackage rec {
|
|||
version = "0.0.16";
|
||||
format = "pyproject";
|
||||
|
||||
# ValueError: mutable default <class 'tests.conftest.Point'> for field a is not allowed: use default_factory
|
||||
disabled = pythonAtLeast "3.11";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbt-labs";
|
||||
repo = pname;
|
||||
|
@ -23,8 +21,18 @@ buildPythonPackage rec {
|
|||
hash = "sha256-DboVCvByI8bTThamGBwSiQADGxIaEnTMmwmVI+4ARgc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/dbt-labs/hologram/pull/58
|
||||
(fetchpatch {
|
||||
name = "python3.11-test-compatibility.patch";
|
||||
url = "https://github.com/dbt-labs/hologram/commit/84bbe862ef6a2fcc8b8ce85b5c9a006cc7dc1f66.patch";
|
||||
hash = "sha256-t096jJDoKUPED4QHSfVjUMLtUJjWcqjblCtGR8moEJc=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
|
|
Loading…
Reference in a new issue