git.iko.soy/typeable/nixpkgs
on master help sign in
PythonPackages: add rig + sentinel (#63729)

PythonPackages: add rig + sentinel

commit6e4633d2cd338a185005eda18a95c43e50116dcc authorJörg Thalheim <Mic92@users.noreply.github.com> dateMon 24 Jun 2019, 14:51 (7 years ago) parent270415e9a0f64a
3 files changed+50
pkgs/development/python-modules/rig/default.nix+29 pkgs/development/python-modules/sentinel/default.nix+17 pkgs/top-level/python-packages.nix+4
pkgs/development/python-modules/rig/default.nixnew file+29
@@ -0,0 +1,29 @@
1+{ lib, buildPythonPackage, fetchPypi
2+, isPy34, isPy35, isPy27
3+, numpy, pytz, six, enum-compat, sentinel
4+}:
5+
6+buildPythonPackage rec {
7+ pname = "rig";
8+ version = "2.4.1";
9+
10+ src = fetchPypi {
11+ inherit pname version;
12+ sha256 = "5a3896dbde3f291c5dd34769e7329ef5d5e4da34fee53479bd13dc5e5d540b8a";
13+ };
14+
15+ propagatedBuildInputs = [ numpy pytz six sentinel enum-compat ];
16+
17+ # This is the list of officially supported versions. Other versions may work
18+ # as well.
19+ disabled = !(isPy35 || isPy34 || isPy27);
20+
21+ # Test Phase is only supported in development sources.
22+ doCheck = false;
23+
24+ meta = with lib; {
25+ description = "A collection of tools for developing SpiNNaker applications";
26+ homepage = "https://github.com/project-rig/rig";
27+ license = licenses.gpl2;
28+ };
29+}
pkgs/development/python-modules/sentinel/default.nixnew file+17
@@ -0,0 +1,17 @@
1+{ lib, buildPythonPackage, fetchPypi}:
2+
3+buildPythonPackage rec {
4+ pname = "sentinel";
5+ version = "0.1.1";
6+
7+ src = fetchPypi {
8+ inherit pname version;
9+ sha256 = "c00ba2a4f240ea4c5414059a696d6e128730272cb2c631b2eff42e86da1f89b3";
10+ };
11+
12+ meta = with lib; {
13+ description = "Create sentinel and singleton objects";
14+ homepage = "https://github.com/eddieantonio/sentinel";
15+ license = licenses.mit;
16+ };
17+}
pkgs/top-level/python-packages.nix+4
@@ -917,6 +917,8 @@ in {
917917
918918 pyzufall = callPackage ../development/python-modules/pyzufall { };
919919
920+ rig = callPackage ../development/python-modules/rig { };
921+
920922 rhpl = disabledIf isPy3k (callPackage ../development/python-modules/rhpl {});
921923
922924 rlp = callPackage ../development/python-modules/rlp { };
@@ -931,6 +933,8 @@ in {
931933
932934 selectors2 = callPackage ../development/python-modules/selectors2 { };
933935
936+ sentinel = callPackage ../development/python-modules/sentinel { };
937+
934938 sentry-sdk = callPackage ../development/python-modules/sentry-sdk {};
935939
936940 sepaxml = callPackage ../development/python-modules/sepaxml { };