Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi, isPy36 }: 2 3buildPythonPackage rec { 4 pname = "dataclasses"; 5 version = "0.7"; 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 = "494a6dcae3b8bcf80848eea2ef64c0cc5cd307ffc263e17cdf42f3e5420808e6"; 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}