1{ lib, buildPythonPackage, fetchPypi, isPy36 }: 2 3buildPythonPackage rec { 4 pname = "dataclasses"; 5 version = "0.8"; 6 7 # backport only works on Python 3.6, and is in the standard library in Python 3.7 8 disabled = !isPy36; 9 10 src = fetchPypi { 11 inherit pname version; 12 sha256 = "8479067f342acf957dc82ec415d355ab5edb7e7646b90dc6e2fd1d96ad084c97"; 13 }; 14 15 meta = with lib; { 16 description = "An implementation of PEP 557: Data Classes"; 17 homepage = "https://github.com/ericvsmith/dataclasses"; 18 license = licenses.asl20; 19 maintainers = with maintainers; [ catern ]; 20 }; 21}