python312Packages.jalali-core: init at 1.0.0, python312Packages.jdatetime: refactor (#348048)

This commit is contained in:
Fabian Affolter 2024-10-12 17:04:25 +02:00 committed by GitHub
commit f53bdd90a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 45 additions and 4 deletions

View File

@ -0,0 +1,35 @@
{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "jalali-core";
version = "1.0.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
pname = "jalali_core";
inherit version;
hash = "sha256-9Ch8cMYwMj3PCjqybfkFuk1FHiMKwfZbO7L3d5eJSis=";
};
build-system = [ setuptools ];
# Module has no tests
doCheck = false;
pythonImportsCheck = [ "jalali_core" ];
meta = {
description = "Module to convert Gregorian to Jalali and inverse dates";
homepage = "https://pypi.org/project/jalali-core/";
license = lib.licenses.lgpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
}

View File

@ -2,29 +2,33 @@
lib,
buildPythonPackage,
fetchPypi,
six,
jalali-core,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "jdatetime";
version = "5.0.0";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-LMYD2RPA2OMokoRU09KVJhywN+mVAif2fJYpq0cQ/fk=";
};
propagatedBuildInputs = [ six ];
build-system = [ setuptools ];
dependencies = [ jalali-core ];
pythonImportsCheck = [ "jdatetime" ];
meta = with lib; {
description = "Jalali datetime binding";
homepage = "https://github.com/slashmili/python-jalali";
changelog = "https://github.com/slashmili/python-jalali/blob/v${version}/CHANGELOG.md";
license = licenses.psfl;
maintainers = [ ];
};

View File

@ -6333,6 +6333,8 @@ self: super: with self; {
jaeger-client = callPackage ../development/python-modules/jaeger-client { };
jalali-core = callPackage ../development/python-modules/jalali-core { };
jamo = callPackage ../development/python-modules/jamo { };
janus = callPackage ../development/python-modules/janus { };