Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 64 lines
Nix
at gcc-offload
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub, hypothesis, marshmallow, poetry-core, poetry-dynamic-versioning, pytestCheckHook, pythonOlder, typing-inspect,}:
buildPythonPackage rec { pname = "dataclasses-json"; version = "0.6.7"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "lidatong"; repo = "dataclasses-json"; rev = "refs/tags/v${version}"; hash = "sha256-AH/T6pa/CHtQNox67fqqs/BBnUcmThvbnSHug2p33qM="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail 'version = "0.0.0"' 'version = "${version}"' '';
build-system = [ poetry-core poetry-dynamic-versioning ];
dependencies = [ typing-inspect marshmallow ];
nativeCheckInputs = [ hypothesis pytestCheckHook ];
disabledTestPaths = [ # fails with the following error and avoid dependency on mypy # mypy_main(None, text_io, text_io, [__file__], clean_exit=True) # TypeError: main() takes at most 4 arguments (5 given) "tests/test_annotations.py" ];
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 ]; };}