python3Packages.cattrs: init at 1.1.2

This commit is contained in:
Fabian Affolter 2021-01-22 09:33:10 +01:00
parent 2ab13ca162
commit 038ab72940
2 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,35 @@
{ lib
, attrs
, buildPythonPackage
, fetchFromGitHub
, hypothesis
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "cattrs";
version = "1.1.2";
src = fetchFromGitHub {
owner = "Tinche";
repo = pname;
rev = "v${version}";
sha256 = "083d5mi6x7qcl26wlvwwn7gsp5chxlxkh4rp3a41w8cfwwr3h6l8";
};
propagatedBuildInputs = [ attrs ];
checkInputs = [
hypothesis
pytestCheckHook
];
pythonImportsCheck = [ "cattr" ];
meta = with lib; {
description = "Python custom class converters for attrs";
homepage = "https://github.com/Tinche/cattrs";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1161,6 +1161,8 @@ in {
catboost = callPackage ../development/python-modules/catboost { };
cattrs = callPackage ../development/python-modules/cattrs { };
cbeams = callPackage ../misc/cbeams { };
cbor2 = callPackage ../development/python-modules/cbor2 { };