mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
python312Packages.jalali-core: init at 1.0.0, python312Packages.jdatetime: refactor (#348048)
This commit is contained in:
commit
f53bdd90a5
35
pkgs/development/python-modules/jalali-core/default.nix
Normal file
35
pkgs/development/python-modules/jalali-core/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 = [ ];
|
||||
};
|
||||
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user