diff --git a/pkgs/development/python-modules/umalqurra/default.nix b/pkgs/development/python-modules/umalqurra/default.nix new file mode 100644 index 00000000000..a41921a9d8c --- /dev/null +++ b/pkgs/development/python-modules/umalqurra/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "umalqurra"; + version = "0.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "719f6a36f908ada1c29dae0d934dd0f1e1f6e3305784edbec23ad719397de678"; + }; + + # No tests included + doCheck = false; + + # See for license + # https://github.com/tytkal/python-hijiri-ummalqura/issues/4 + meta = with stdenv.lib; { + description = "Date Api that support Hijri Umalqurra calendar"; + homepage = https://github.com/tytkal/python-hijiri-ummalqura; + license = with licenses; [ publicDomain ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c81dc75713e..9f0f49d44b4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4039,27 +4039,7 @@ in { ukpostcodeparser = callPackage ../development/python-modules/ukpostcodeparser { }; - umalqurra = buildPythonPackage rec { - name = "umalqurra-${version}"; - version = "0.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/u/umalqurra/umalqurra-0.2.tar.gz"; - sha256 = "719f6a36f908ada1c29dae0d934dd0f1e1f6e3305784edbec23ad719397de678"; - }; - - # No tests included - doCheck = false; - - # See for license - # https://github.com/tytkal/python-hijiri-ummalqura/issues/4 - meta = { - description = "Date Api that support Hijri Umalqurra calendar"; - homepage = https://github.com/tytkal/python-hijiri-ummalqura; - license = with licenses; [ publicDomain ]; - }; - - }; + umalqurra = callPackage ../development/python-modules/umalqurra { }; umemcache = callPackage ../development/python-modules/umemcache {};