diff options
author | Spencer Baugh <sbaugh@catern.com> | 2018-04-19 14:47:40 +0000 |
---|---|---|
committer | Spencer Baugh <sbaugh@catern.com> | 2018-04-24 18:04:54 +0000 |
commit | 2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e (patch) | |
tree | 171aedc5b85ff235a8e8f09c06437dd86cc89f14 /pkgs/development/python-modules/dataclasses | |
parent | e821f40c26b4477a2dba682d2b465654c9667ed1 (diff) | |
download | nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.tar nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.tar.gz nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.tar.bz2 nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.tar.lz nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.tar.xz nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.tar.zst nixlib-2dbde855ebd39bfe2ea6d9431c11b0344e48ff4e.zip |
pythonPackages.dataclasses: init at 0.5
Diffstat (limited to 'pkgs/development/python-modules/dataclasses')
-rw-r--r-- | pkgs/development/python-modules/dataclasses/default.nix | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dataclasses/default.nix b/pkgs/development/python-modules/dataclasses/default.nix new file mode 100644 index 000000000000..083ea6d6347b --- /dev/null +++ b/pkgs/development/python-modules/dataclasses/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy36 }: + +buildPythonPackage rec { + pname = "dataclasses"; + version = "0.5"; + + # backport only works on Python 3.6, and is in the standard library in Python 3.7 + disabled = !isPy36; + + src = fetchPypi { + inherit pname version; + sha256 = "07lgn1k56sqpw7yfzv5a6mwshsgaipjawflgyr6lrkryjl64481z"; + }; + + meta = with stdenv.lib; { + description = "An implementation of PEP 557: Data Classes"; + homepage = "https://github.com/ericvsmith/dataclasses"; + license = licenses.asl20; + maintainers = with maintainers; [ catern ]; + }; +} |