1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 distutils,
7 setuptools,
8}:
9buildPythonPackage rec {
10 pname = "dataclass-csv";
11 version = "1.4.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "dfurtado";
16 repo = "dataclass-csv";
17 tag = version;
18 hash = "sha256-XDvQrKUtg5ptkF36xGlykhc395pmjBP/19m0EPDyaOM=";
19 };
20
21 patches = [
22 ./deprecated_dependency.patch
23 ];
24
25 build-system = [
26 setuptools
27 ];
28
29 dependencies = [
30 distutils
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "dataclass_csv" ];
38
39 meta = {
40 description = "Map CSV data into dataclasses";
41 homepage = "https://github.com/dfurtado/dataclass-csv";
42 changelog = "https://github.com/dfurtado/dataclass-csv/releases/tag/${version}";
43 license = lib.licenses.bsd3;
44 maintainers = with lib.maintainers; [ theobori ];
45 };
46}