mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
Merge pull request #249606 from fabaff/dataclasses-json-bump
python311Packages.dataclasses-json: 0.5.9 -> 0.5.14
This commit is contained in:
commit
bc47bbd78d
@ -27,6 +27,17 @@ let
|
|||||||
hash = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
|
hash = "sha256-IWTo/P9JRxBQlhtcH3JMJZZrwAA8EALF4dtHajWUc4w=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
dataclasses-json = super.dataclasses-json.overridePythonAttrs (oldAttrs: rec {
|
||||||
|
version = "0.5.7";
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lidatong";
|
||||||
|
repo = "dataclasses-json";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
hash = "sha256-0tw5Lz+c4ymO+AGpG6THbiALWGBrehC84+yWWk1eafc=";
|
||||||
|
};
|
||||||
|
nativeBuildInputs = [ python3.pkgs.setuptools ];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
@ -1,23 +1,39 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, typing-inspect
|
|
||||||
, marshmallow-enum
|
|
||||||
, hypothesis
|
, hypothesis
|
||||||
|
, marshmallow-enum
|
||||||
|
, poetry-core
|
||||||
|
, poetry-dynamic-versioning
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, typing-inspect
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "dataclasses-json";
|
pname = "dataclasses-json";
|
||||||
version = "0.5.9";
|
version = "0.5.14";
|
||||||
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "lidatong";
|
owner = "lidatong";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-2/J+d7SQvUs7nXw1n+qwy0DQCplK28eUrbP7+yQPB7g=";
|
hash = "sha256-pCvVKHh2elHaukEJNTw8MgJmoTlYjO9aVWFCQXXD13c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace pyproject.toml \
|
||||||
|
--replace 'version = "0.0.0"' 'version = "${version}"'
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
poetry-core
|
||||||
|
poetry-dynamic-versioning
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
typing-inspect
|
typing-inspect
|
||||||
marshmallow-enum
|
marshmallow-enum
|
||||||
@ -35,11 +51,14 @@ buildPythonPackage rec {
|
|||||||
"tests/test_annotations.py"
|
"tests/test_annotations.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "dataclasses_json" ];
|
pythonImportsCheck = [
|
||||||
|
"dataclasses_json"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple API for encoding and decoding dataclasses to and from JSON";
|
description = "Simple API for encoding and decoding dataclasses to and from JSON";
|
||||||
homepage = "https://github.com/lidatong/dataclasses-json";
|
homepage = "https://github.com/lidatong/dataclasses-json";
|
||||||
|
changelog = "https://github.com/lidatong/dataclasses-json/releases/tag/v${version}";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ albakham ];
|
maintainers = with maintainers; [ albakham ];
|
||||||
};
|
};
|
||||||
|
@ -30,11 +30,6 @@ buildPythonPackage rec {
|
|||||||
hash = "sha256-9dX9+YwJdJpgU3cZkxk7+CgdRFgcVhrvU0amO8zHZhs=";
|
hash = "sha256-9dX9+YwJdJpgU3cZkxk7+CgdRFgcVhrvU0amO8zHZhs=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace pyproject.toml \
|
|
||||||
--replace 'pytz = "^2021.1"' 'pytz = "*"'
|
|
||||||
'';
|
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user