git.iko.soy/typeable/nixpkgs
on master help sign in
python.pkgs.chai: move to separate expression
commit3182658a4f3a225ecfaaabf41b73e0a0a13e0ef4 authorwisut hantanong <wizzup@gmail.com> dateFri 28 Jul 2017, 15:45 (9 years ago) parent76c4ec7
2 files changed+17−13
pkgs/development/python-modules/chai/default.nix+16 pkgs/top-level/python-packages.nix+1−13
pkgs/development/python-modules/chai/default.nixnew file+16
@@ -0,0 +1,16 @@
1+{ stdenv, buildPythonPackage, fetchPypi }:
2+
3+buildPythonPackage rec {
4+ pname = "chai";
5+ version = "1.1.1";
6+ name = "${pname}-${version}";
7+
8+ src = fetchPypi {
9+ inherit pname version;
10+ sha256 = "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl";
11+ };
12+
13+ meta = with stdenv.lib; {
14+ description = "Mocking, stubbing and spying framework for python";
15+ };
16+}
pkgs/top-level/python-packages.nix+1−13
@@ -619,19 +619,7 @@ in {
619619
620620 area53 = callPackage ../development/python-modules/area53 { };
621621
622− chai = buildPythonPackage rec {
623− name = "chai-${version}";
624− version = "1.1.1";
625−
626− src = pkgs.fetchurl {
627− url = "mirror://pypi/c/chai/${name}.tar.gz";
628− sha256 = "016kf3irrclpkpvcm7q0gmkfibq7jgy30a9v73pp42bq9h9a32bl";
629− };
630−
631− meta = {
632− description = "Mocking, stubbing and spying framework for python";
633− };
634− };
622+ chai = callPackage ../development/python-modules/chai { };
635623
636624 chainmap = buildPythonPackage rec {
637625 name = "chainmap-1.0.2";