1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 jalali-core,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "jdatetime";
12 version = "5.2.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 hash = "sha256-yB1YmHF7grYJo84qc/i40yMLDHV+XA3p1rGs/cIk9VE=";
20 };
21
22 build-system = [ setuptools ];
23
24 dependencies = [ jalali-core ];
25
26 pythonImportsCheck = [ "jdatetime" ];
27
28 meta = with lib; {
29 description = "Jalali datetime binding";
30 homepage = "https://github.com/slashmili/python-jalali";
31 changelog = "https://github.com/slashmili/python-jalali/blob/v${version}/CHANGELOG.md";
32 license = licenses.psfl;
33 maintainers = [ ];
34 };
35}