@@ -0,0 +1,21 @@
1+{ stdenv, buildPythonPackage, fetchPypi, isPy36 }:
2+
3+buildPythonPackage rec {
4+ pname = "dataclasses";
5+ version = "0.5";
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 = "07lgn1k56sqpw7yfzv5a6mwshsgaipjawflgyr6lrkryjl64481z";
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+}