python3Packages.cattrs: init at 1.1.2
This commit is contained in:
parent
2ab13ca162
commit
038ab72940
35
pkgs/development/python-modules/cattrs/default.nix
Normal file
35
pkgs/development/python-modules/cattrs/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1161,6 +1161,8 @@ in {
|
||||||
|
|
||||||
catboost = callPackage ../development/python-modules/catboost { };
|
catboost = callPackage ../development/python-modules/catboost { };
|
||||||
|
|
||||||
|
cattrs = callPackage ../development/python-modules/cattrs { };
|
||||||
|
|
||||||
cbeams = callPackage ../misc/cbeams { };
|
cbeams = callPackage ../misc/cbeams { };
|
||||||
|
|
||||||
cbor2 = callPackage ../development/python-modules/cbor2 { };
|
cbor2 = callPackage ../development/python-modules/cbor2 { };
|
||||||
|
|
Loading…
Reference in a new issue