python3Packages.cart: init at 1.2.1

This commit is contained in:
Fabian Affolter 2021-12-12 13:41:32 +01:00
parent 5e4feb3c2d
commit 886805ba2f
2 changed files with 49 additions and 0 deletions

View file

@ -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 ];
};
}

View file

@ -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 { };