diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-22 09:33:10 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-22 09:33:10 +0100 |
commit | 038ab72940d4eac766e3fb1cb1e06ee9322c8a89 (patch) | |
tree | 1d2c0a5185158c6aabd08a3797c81eb0fee36d9b /pkgs/development/python-modules | |
parent | 2ab13ca162762e8728c3f9bdac92cd9c933ed41f (diff) | |
download | nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.tar nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.tar.gz nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.tar.bz2 nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.tar.lz nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.tar.xz nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.tar.zst nixlib-038ab72940d4eac766e3fb1cb1e06ee9322c8a89.zip |
python3Packages.cattrs: init at 1.1.2
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/cattrs/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cattrs/default.nix b/pkgs/development/python-modules/cattrs/default.nix new file mode 100644 index 000000000000..a48e29b827b7 --- /dev/null +++ b/pkgs/development/python-modules/cattrs/default.nix @@ -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 ]; + }; +} |