From 5fe48723faa216c2a6b1198c720d432fb1b19302 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 12:03:55 +0200 Subject: [PATCH] pythonPackages.bcdoc: Move to own file --- .../python-modules/bcdoc/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +---------------- 2 files changed, 23 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/bcdoc/default.nix diff --git a/pkgs/development/python-modules/bcdoc/default.nix b/pkgs/development/python-modules/bcdoc/default.nix new file mode 100644 index 000000000000..c13fce802655 --- /dev/null +++ b/pkgs/development/python-modules/bcdoc/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchPypi, docutils, six }: + +buildPythonPackage rec { + pname = "bcdoc"; + version = "0.14.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1s2kdqs1n2mj7wq3w0pq30zs7vxq0l3abik2clqnc4hm2j7crbk8"; + }; + + buildInputs = [ docutils six ]; + + # Tests fail due to nix file timestamp normalization. + doCheck = false; + + meta = with stdenv.lib; { + homepage = https://github.com/botocore/bcdoc; + license = licenses.asl20; + description = "ReST document generation tools for botocore"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 658e8af9227e..3c283a02ddb5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -923,25 +923,7 @@ in { batinfo = callPackage ../development/python-modules/batinfo {}; - bcdoc = buildPythonPackage rec { - name = "bcdoc-0.14.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/b/bcdoc/${name}.tar.gz"; - sha256 = "1s2kdqs1n2mj7wq3w0pq30zs7vxq0l3abik2clqnc4hm2j7crbk8"; - }; - - buildInputs = with self; [ docutils six ]; - - # Tests fail due to nix file timestamp normalization. - doCheck = false; - - meta = { - homepage = https://github.com/botocore/bcdoc; - license = licenses.asl20; - description = "ReST document generation tools for botocore"; - }; - }; + bcdoc = callPackage ../development/python-modules/bcdoc {}; beautifulsoup4 = callPackage ../development/python-modules/beautifulsoup4 { };