2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy36 }:
|
2018-04-19 15:47:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dataclasses";
|
2020-11-29 14:04:26 +00:00
|
|
|
version = "0.8";
|
2018-04-19 15:47:40 +01:00
|
|
|
|
|
|
|
# backport only works on Python 3.6, and is in the standard library in Python 3.7
|
|
|
|
disabled = !isPy36;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:26 +00:00
|
|
|
sha256 = "8479067f342acf957dc82ec415d355ab5edb7e7646b90dc6e2fd1d96ad084c97";
|
2018-04-19 15:47:40 +01:00
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-19 15:47:40 +01:00
|
|
|
description = "An implementation of PEP 557: Data Classes";
|
|
|
|
homepage = "https://github.com/ericvsmith/dataclasses";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ catern ];
|
|
|
|
};
|
|
|
|
}
|