From fa23628f04bd6ea8900481fe3cbb215a76d46d75 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 27 Feb 2018 10:31:10 +0100 Subject: [PATCH] pythonPackages.xstatic: move to python-modules --- .../python-modules/xstatic/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 ++----------- 2 files changed, 27 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/xstatic/default.nix diff --git a/pkgs/development/python-modules/xstatic/default.nix b/pkgs/development/python-modules/xstatic/default.nix new file mode 100644 index 000000000000..02931215b8d3 --- /dev/null +++ b/pkgs/development/python-modules/xstatic/default.nix @@ -0,0 +1,25 @@ +{ buildPythonPackage +, lib +, fetchPypi +}: + +buildPythonPackage rec { + pname = "XStatic"; + version = "1.0.1"; + + src = fetchPypi { + inherit version pname; + sha256 = "09npcsyf1ccygjs0qc8kdsv4qqy8gm1m6iv63g9y1fgbcry3vj8f"; + }; + + # no tests implemented + doCheck = false; + + meta = with lib;{ + homepage = https://bitbucket.org/thomaswaldmann/xstatic; + description = "Base packaged static files for python"; + license = licenses.mit; + maintainers = with maintainers; [ makefu ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 000a6cd58e06..18639676daa4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20450,21 +20450,6 @@ EOF }; }; - xstatic = buildPythonPackage rec { - name = "XStatic-${version}"; - version = "1.0.1"; - src = pkgs.fetchurl { - url = "mirror://pypi/X/XStatic/XStatic-${version}.tar.gz"; - sha256 = "09npcsyf1ccygjs0qc8kdsv4qqy8gm1m6iv63g9y1fgbcry3vj8f"; - }; - meta = { - homepage = https://bitbucket.org/thomaswaldmann/xstatic; - description = "Base packaged static files for python"; - license = licenses.mit; - maintainers = [ maintainers.makefu ]; - }; - }; - xlsx2csv = buildPythonPackage rec { name = "xlsx2csv-${version}"; version = "0.7.2"; @@ -20482,6 +20467,8 @@ EOF xmpppy = callPackage ../development/python-modules/xmpppy {}; + xstatic = callPackage ../development/python-modules/xstatic {}; + xstatic-bootbox = buildPythonPackage rec { name = "XStatic-Bootbox-${version}"; version = "4.3.0.1";