summary refs log blame commit diff
path: root/pkgs/development/python-modules/hijri-converter/default.nix
blob: 450eee102372f1deeaf19b18fbaa7da49501bffd (plain) (tree)
1
2
3
4
5
6
7
8
9



                    
             



                            



                               


                          
                                                                   

    


                   
 


                        
 






                                                                                              
{ lib
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "hijri-converter";
  version = "2.2.3";
  format = "setuptools";

  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-5xSc7OzKZHv0Bonsib9ZPHJSsx1pnqWHrQvOkbpC04I=";
  };

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "hijri_converter"
  ];

  meta = with lib; {
    description = "Accurate Hijri-Gregorian date converter based on the Umm al-Qura calendar";
    homepage = "https://github.com/dralshehri/hijri-converter";
    license = licenses.mit;
    maintainers = with maintainers; [ hexa ];
  };
}