From b794f354415ffefac07026ec7aa97f649308b55a Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 29 Oct 2018 15:08:17 -0400 Subject: [PATCH] pythonPackages.x11_hash: refactor move to python-modules --- .../python-modules/x11_hash/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/x11_hash/default.nix 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 000000000000..060d08869b88 --- /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 76cbccdbbe5a..73b0a7e66804 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 { };