Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e48d9e687162
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: e0fa73d6927d
Choose a head ref
  • 5 commits
  • 5 files changed
  • 2 contributors

Commits on Aug 12, 2019

  1. pythonPackages.coreschema: init at 0.0.4

    ivegotasthma committed Aug 12, 2019

    Verified

    This commit was signed with the committer’s verified signature.
    mbbx6spp Susan Potter
    Copy the full SHA
    1a29857 View commit details
  2. pythonPackages.coreapi: init at 2.3.3

    ivegotasthma committed Aug 12, 2019
    Copy the full SHA
    4f25a12 View commit details
  3. pythonPackages.itypes: init at 1.1.0

    ivegotasthma committed Aug 12, 2019
    Copy the full SHA
    4135679 View commit details

Commits on Aug 14, 2019

  1. pythonPackages.drf-yasg: init at 1.16.1

    ivegotasthma committed Aug 14, 2019
    Copy the full SHA
    cecfde4 View commit details

Commits on Jan 21, 2020

  1. Merge pull request #66391 from doom3wasagoodgame/init-python-package-…

    …coreapi
    
    Packages for the python coreapi client
    lsix authored Jan 21, 2020
    Copy the full SHA
    e0fa73d View commit details
44 changes: 44 additions & 0 deletions pkgs/development/python-modules/coreapi/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
stdenv,
fetchFromGitHub,
buildPythonPackage,
django,
coreschema,
itypes,
uritemplate,
requests,
pytest,
}:

buildPythonPackage rec {
pname = "coreapi";
version = "2.3.3";

src = fetchFromGitHub {
repo = "python-client";
owner = "core-api";
rev = version;
sha256 = "1c6chm3q3hyn8fmjv23qgc79ai1kr3xvrrkp4clbqkssn10k7mcw";
};

propagatedBuildInputs = [
django
coreschema
itypes
uritemplate
requests
];

checkInputs = [ pytest ];
checkPhase = ''
cd ./tests
pytest
'';

meta = with stdenv.lib; {
description = "Python client library for Core API";
homepage = https://github.com/core-api/python-client;
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
};
}
34 changes: 34 additions & 0 deletions pkgs/development/python-modules/coreschema/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
stdenv,
fetchFromGitHub,
buildPythonPackage,
jinja2,
pytest,
}:

buildPythonPackage rec {
pname = "coreschema";
version = "0.0.4";

src = fetchFromGitHub {
repo = "python-coreschema";
owner = "core-api";
rev = version;
sha256 = "027pc753mkgbb3r1v1x7dsdaarq93drx0f79ppvw9pfkcjcq6wb1";
};

propagatedBuildInputs = [ jinja2 ];

checkInputs = [ pytest ];
checkPhase = ''
cd ./tests
pytest
'';

meta = with stdenv.lib; {
description = "Python client library for Core Schema";
homepage = https://github.com/ivegotasthma/python-coreschema;
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
};
}
40 changes: 40 additions & 0 deletions pkgs/development/python-modules/drf-yasg/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
stdenv,
buildPythonPackage,
fetchPypi,
inflection,
ruamel_yaml,
setuptools_scm,
six,
coreapi,
djangorestframework,
}:

buildPythonPackage rec {
pname = "drf-yasg";
version = "1.16.1";

src = fetchPypi {
inherit pname version;
sha256 = "0ri5h5xsacm99c6gvb4ldwisbqgiv2vq8qbn7vrh6vplzlpyvzb8";
};

nativeBuildInputs = [
setuptools_scm
];

propagatedBuildInputs = [
six
inflection
ruamel_yaml
coreapi
djangorestframework
];

meta = with stdenv.lib; {
description = "Generation of Swagger/OpenAPI schemas for Django REST Framework";
homepage = https://github.com/axnsan12/drf-yasg;
maintainers = with maintainers; [ ivegotasthma ];
license = licenses.bsd3;
};
}
31 changes: 31 additions & 0 deletions pkgs/development/python-modules/itypes/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
stdenv,
fetchFromGitHub,
buildPythonPackage,
pytest,
}:

buildPythonPackage rec {
pname = "itypes";
version = "1.1.0";

src = fetchFromGitHub {
repo = pname;
owner = "tomchristie";
rev = version;
sha256 = "0zkhn16wpslkxkq77dqw5rxa28nrchcb6nd3vgnxv91p4skyfm62";
};

checkInputs = [ pytest ];
checkPhase = ''
mv itypes.py itypes.py.hidden
pytest tests.py
'';

meta = with stdenv.lib; {
description = "Simple immutable types for python";
homepage = https://github.com/tomchristie/itypes;
license = licenses.bsd3;
maintainers = with maintainers; [ ivegotasthma ];
};
}
8 changes: 8 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -2115,6 +2115,10 @@ in {

cookies = callPackage ../development/python-modules/cookies { };

coreapi = callPackage ../development/python-modules/coreapi { };

coreschema = callPackage ../development/python-modules/coreschema { };

coveralls = callPackage ../development/python-modules/coveralls { };

coverage = callPackage ../development/python-modules/coverage { };
@@ -2500,6 +2504,8 @@ in {

urllib3 = callPackage ../development/python-modules/urllib3 {};

drf-yasg = callPackage ../development/python-modules/drf-yasg { };

dropbox = callPackage ../development/python-modules/dropbox {};

drms = callPackage ../development/python-modules/drms { };
@@ -2749,6 +2755,8 @@ in {

itsdangerous = callPackage ../development/python-modules/itsdangerous { };

itypes = callPackage ../development/python-modules/itypes { };

iniparse = callPackage ../development/python-modules/iniparse { };

intreehooks = callPackage ../development/python-modules/intreehooks { };