mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-31 17:23:34 +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=";
|
||||
};
|
||||
});
|
||||
|
||||
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
|
||||
|
@ -1,23 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, typing-inspect
|
||||
, marshmallow-enum
|
||||
, hypothesis
|
||||
, marshmallow-enum
|
||||
, poetry-core
|
||||
, poetry-dynamic-versioning
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, typing-inspect
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dataclasses-json";
|
||||
version = "0.5.9";
|
||||
version = "0.5.14";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lidatong";
|
||||
repo = pname;
|
||||
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 = [
|
||||
typing-inspect
|
||||
marshmallow-enum
|
||||
@ -35,11 +51,14 @@ buildPythonPackage rec {
|
||||
"tests/test_annotations.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "dataclasses_json" ];
|
||||
pythonImportsCheck = [
|
||||
"dataclasses_json"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Simple API for encoding and decoding dataclasses to and from JSON";
|
||||
homepage = "https://github.com/lidatong/dataclasses-json";
|
||||
changelog = "https://github.com/lidatong/dataclasses-json/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ albakham ];
|
||||
};
|
||||
|
@ -30,11 +30,6 @@ buildPythonPackage rec {
|
||||
hash = "sha256-9dX9+YwJdJpgU3cZkxk7+CgdRFgcVhrvU0amO8zHZhs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace 'pytz = "^2021.1"' 'pytz = "*"'
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
poetry-core
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user