diff options
author | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-10-29 11:40:45 +0100 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2017-10-29 11:50:59 +0100 |
commit | b1e23a87b18be0077292eefffe660a233fa33123 (patch) | |
tree | 6ace567286344f483aed4632a77efcbd5ca97109 | |
parent | 0b93dbe9d63895e1ba845bc15dcd5f107958097a (diff) | |
download | nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.tar nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.tar.gz nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.tar.bz2 nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.tar.lz nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.tar.xz nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.tar.zst nixpkgs-b1e23a87b18be0077292eefffe660a233fa33123.zip |
pythonPackages.bitstring: move to python-modules/
Easier maintenance when expressions are in separate files.
-rw-r--r-- | pkgs/development/python-modules/bitstring/default.nix | 21 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 21 |
2 files changed, 22 insertions, 20 deletions
diff --git a/pkgs/development/python-modules/bitstring/default.nix b/pkgs/development/python-modules/bitstring/default.nix new file mode 100644 index 00000000000..f6c56646dcb --- /dev/null +++ b/pkgs/development/python-modules/bitstring/default.nix @@ -0,0 +1,21 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "bitstring"; + version = "3.1.5"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "1algq30j6rz12b1902bpw7iijx5lhrfqhl80d4ac6xzkrrpshqy1"; + extension = "zip"; + }; + + meta = with stdenv.lib; { + description = "Module for binary data manipulation"; + homepage = "https://github.com/scott-griffiths/bitstring"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ bjornfor ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b1cc38f5bf7..2759ec20121 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1940,26 +1940,7 @@ in { }; }; - - bitstring = buildPythonPackage rec { - pname = "bitstring"; - version = "3.1.5"; - name = "${pname}-${version}"; - - src = fetchPypi { - inherit pname version; - sha256 = "1algq30j6rz12b1902bpw7iijx5lhrfqhl80d4ac6xzkrrpshqy1"; - extension = "zip"; - }; - - meta = { - description = "Module for binary data manipulation"; - homepage = "https://github.com/scott-griffiths/bitstring"; - license = licenses.mit; - platforms = platforms.linux; - maintainers = with maintainers; [ bjornfor ]; - }; - }; + bitstring = callPackage ../development/python-modules/bitstring { }; blaze = callPackage ../development/python-modules/blaze { }; |