1{ stdenv, buildPythonPackage, fetchPypi, isPy36 }: 2 3buildPythonPackage rec { 4 pname = "dataclasses"; 5 version = "0.6"; 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 = "6988bd2b895eef432d562370bb707d540f32f7360ab13da45340101bc2307d84"; 13 }; 14 15 meta = with stdenv.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}