From db6d615e6e0c01a62b7d48ca0e2b33cb5587b2c5 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 11:31:12 +0200 Subject: [PATCH] pythonPackages.atomicwrites: Move to own file --- .../python-modules/atomicwrites/default.nix | 17 +++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +---------------- 2 files changed, 18 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/atomicwrites/default.nix diff --git a/pkgs/development/python-modules/atomicwrites/default.nix b/pkgs/development/python-modules/atomicwrites/default.nix new file mode 100644 index 000000000000..724f662e5d3c --- /dev/null +++ b/pkgs/development/python-modules/atomicwrites/default.nix @@ -0,0 +1,17 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "atomicwrites"; + version = "0.1.9"; + + src = fetchPypi { + inherit pname version; + sha256 = "08s05h211r07vs66r4din3swrbzb344vli041fihpg34q3lcxpvw"; + }; + + meta = with stdenv.lib; { + description = "Atomic file writes on POSIX"; + homepage = https://pypi.python.org/pypi/atomicwrites; + maintainers = with maintainers; [ matthiasbeyer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index de5c441cc46a..9da99a4b8add 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -557,22 +557,7 @@ in { atomiclong = callPackage ../development/python-modules/atomiclong { }; - atomicwrites = buildPythonPackage rec { - version = "0.1.9"; - name = "atomicwrites-${version}"; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/atomicwrites/atomicwrites-${version}.tar.gz"; - sha256 = "08s05h211r07vs66r4din3swrbzb344vli041fihpg34q3lcxpvw"; - }; - - meta = { - description = "Atomic file writes on POSIX"; - homepage = https://pypi.python.org/pypi/atomicwrites/0.1.0; - maintainers = with maintainers; [ matthiasbeyer ]; - }; - - }; + atomicwrites = callPackage ../development/python-modules/atomicwrites { }; # argparse is part of stdlib in 2.7 and 3.2+ argparse = null;