From 31b7f8701a0c31d4f66508fed1ce1ea475e38dcd Mon Sep 17 00:00:00 2001 From: wisut hantanong Date: Thu, 31 Aug 2017 18:31:04 +0700 Subject: [PATCH] pythonPackages.ramlfications : move to separate expression --- .../python-modules/ramlfications/default.nix | 30 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 26 +--------------- 2 files changed, 31 insertions(+), 25 deletions(-) create mode 100644 pkgs/development/python-modules/ramlfications/default.nix diff --git a/pkgs/development/python-modules/ramlfications/default.nix b/pkgs/development/python-modules/ramlfications/default.nix new file mode 100644 index 000000000000..1042b8de98ed --- /dev/null +++ b/pkgs/development/python-modules/ramlfications/default.nix @@ -0,0 +1,30 @@ +{ stdenv, buildPythonPackage, fetchPypi +, mock, pytest, pytest-mock, pytest-server-fixtures, pytest-localserver +, termcolor, click, markdown2, six, jsonref, pyyaml, xmltodict, attrs +}: + +buildPythonPackage rec { + pname = "ramlfications"; + version = "0.1.9"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "0xvnna7kaq4nm5nfnwcwbr5bcm2s532hgyp7kq4v9iivn48rrf3v"; + }; + + meta = with stdenv.lib; { + description = "A Python RAML parser."; + homepage = "https://ramlfications.readthedocs.org"; + license = licenses.asl20; + maintainers = with maintainers; [ nand0p ]; + platforms = platforms.all; + }; + + doCheck = false; + # [darwin] AssertionError: Expected 'update_mime_types' to have been called once. Called 0 times. + + buildInputs = [ mock pytest pytest-mock pytest-server-fixtures pytest-localserver ]; + + propagatedBuildInputs = [ termcolor click markdown2 six jsonref pyyaml xmltodict attrs ]; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index df3c33442d51..cc391405ee24 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -28229,31 +28229,7 @@ EOF txaio = callPackage ../development/python-modules/txaio { }; - ramlfications = buildPythonPackage rec { - name = "${pname}-${version}"; - pname = "ramlfications"; - version = "0.1.9"; - - meta = { - description = "A Python RAML parser."; - homepage = "https://ramlfications.readthedocs.org"; - license = licenses.asl20; - maintainers = with maintainers; [ nand0p ]; - platforms = platforms.all; - }; - - doCheck = false; - # [darwin] AssertionError: Expected 'update_mime_types' to have been called once. Called 0 times. - - buildInputs = with self; [ mock pytest pytest-mock pytest-server-fixtures pytest-localserver ]; - - propagatedBuildInputs = with self; [ termcolor click markdown2 six jsonref pyyaml xmltodict attrs ]; - - src = pkgs.fetchurl { - url = "mirror://pypi/r/${pname}/${name}.tar.gz"; - sha256 = "0xvnna7kaq4nm5nfnwcwbr5bcm2s532hgyp7kq4v9iivn48rrf3v"; - }; - }; + ramlfications = callPackage ../development/python-modules/ramlfications { }; yapf = callPackage ../development/python-modules/yapf { };