diff --git a/pkgs/development/python-modules/pydenticon/default.nix b/pkgs/development/python-modules/pydenticon/default.nix new file mode 100644 index 000000000000..f217b68808c5 --- /dev/null +++ b/pkgs/development/python-modules/pydenticon/default.nix @@ -0,0 +1,25 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pillow +, mock +}: + +buildPythonPackage rec { + pname = "pydenticon"; + version = "0.2"; + + src = fetchPypi { + inherit pname version; + sha256 = "035dawcspgjw2rksbnn863s7b0i9ac8cc1nshshvd1l837ir1czp"; + }; + + propagatedBuildInputs = [ pillow mock ]; + + meta = with stdenv.lib; { + homepage = https://github.com/azaghal/pydenticon; + description = "Library for generating identicons. Port of Sigil (https://github.com/cupcake/sigil) with enhancements"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b44252464b8a..9cf07452466f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4371,18 +4371,7 @@ in { daemonize = callPackage ../development/python-modules/daemonize { }; - pydenticon = buildPythonPackage rec { - name = "pydenticon-${version}"; - version = "0.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pydenticon/pydenticon-0.2.tar.gz"; - sha256 = "035dawcspgjw2rksbnn863s7b0i9ac8cc1nshshvd1l837ir1czp"; - }; - propagatedBuildInputs = with self; [ - pillow mock - ]; - }; + pydenticon = callPackage ../development/python-modules/pydenticon { }; pynac = buildPythonPackage rec { name = "pynac-${version}";