From 886805ba2f6d76268dd30b694b7d8489812d277e Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 12 Dec 2021 13:41:32 +0100 Subject: [PATCH] python3Packages.cart: init at 1.2.1 --- .../python-modules/cart/default.nix | 47 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 49 insertions(+) create mode 100644 pkgs/development/python-modules/cart/default.nix diff --git a/pkgs/development/python-modules/cart/default.nix b/pkgs/development/python-modules/cart/default.nix new file mode 100644 index 000000000000..ecba8f9cc394 --- /dev/null +++ b/pkgs/development/python-modules/cart/default.nix @@ -0,0 +1,47 @@ +{ lib +, pycryptodome +, buildPythonPackage +, fetchFromGitHub +, pythonOlder +, pytestCheckHook +, unittest2 +}: + +buildPythonPackage rec { + pname = "cart"; + version = "1.2.1"; + format = "setuptools"; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "CybercentreCanada"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-PsdDlNhX0FbuwS5ZXk9P98DjnzDGdigfnRwrdwYa4qY="; + }; + + propagatedBuildInputs = [ + pycryptodome + ]; + + checkInputs = [ + pytestCheckHook + unittest2 + ]; + + pytestFlagsArray = [ + "unittests" + ]; + + pythonImportsCheck = [ + "cart" + ]; + + meta = with lib; { + description = "Python module for the CaRT Neutering format"; + homepage = "https://github.com/CybercentreCanada/cart"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 03afe1e7fe67..28225255bb26 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1405,6 +1405,8 @@ in { carrot = callPackage ../development/python-modules/carrot { }; + cart = callPackage ../development/python-modules/cart { }; + cartopy = callPackage ../development/python-modules/cartopy { }; casa-formats-io = callPackage ../development/python-modules/casa-formats-io { };