diff --git a/pkgs/development/python-modules/x11_hash/default.nix b/pkgs/development/python-modules/x11_hash/default.nix new file mode 100644 index 00000000000..060d08869b8 --- /dev/null +++ b/pkgs/development/python-modules/x11_hash/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec{ + version = "1.4"; + pname = "x11_hash"; + + src = fetchPypi { + inherit pname version; + sha256 = "172skm9xbbrivy1p4xabxihx9lsnzi53hvzryfw64m799k2fmp22"; + }; + + meta = with stdenv.lib; { + description = "Binding for X11 proof of work hashing"; + homepage = https://github.com/mazaclub/x11_hash; + license = licenses.mit; + maintainers = with maintainers; [ np ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 76cbccdbbe5..73b0a7e6680 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4531,22 +4531,7 @@ in { trezor_agent = callPackage ../development/python-modules/trezor_agent { }; - x11_hash = buildPythonPackage rec{ - version = "1.4"; - name = "x11_hash-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/x/x11_hash/${name}.tar.gz"; - sha256 = "172skm9xbbrivy1p4xabxihx9lsnzi53hvzryfw64m799k2fmp22"; - }; - - meta = { - description = "Binding for X11 proof of work hashing"; - homepage = https://github.com/mazaclub/x11_hash; - license = licenses.mit; - maintainers = with maintainers; [ np ]; - }; - }; + x11_hash = callPackage ../development/python-modules/x11_hash { }; termstyle = callPackage ../development/python-modules/termstyle { };